Skip to content

Commit 898f7ca

Browse files
committed
chore: bump version to 1.0.18
1 parent febd994 commit 898f7ca

File tree

5 files changed

+55
-22
lines changed

5 files changed

+55
-22
lines changed

.github/workflows/build.yml

Lines changed: 35 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,10 @@
1-
name: Build and Release macOS App
1+
name: Build/release
22

33
on:
44
push:
55
tags:
66
- "v*"
77

8-
permissions:
9-
contents: write # Required for GitHub publisher to create releases
10-
118
jobs:
129
release:
1310
runs-on: macos-latest
@@ -16,27 +13,48 @@ jobs:
1613
- name: Check out Git repository
1714
uses: actions/checkout@v4
1815

19-
- name: Setup Node.js
16+
- name: Install Node.js
2017
uses: actions/setup-node@v4
2118
with:
22-
node-version: 18
19+
node-version: 20
20+
cache: "pnpm"
2321

24-
- name: Setup pnpm
22+
- name: Install pnpm
2523
uses: pnpm/action-setup@v3
2624
with:
27-
version: 10
25+
version: 10.4.1
2826

2927
- name: Install dependencies
3028
run: pnpm install
3129

32-
- name: Publish Electron app to GitHub
30+
- name: Import certificates
3331
env:
34-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
35-
run: pnpm run publish
36-
37-
# Optional: Upload artifacts as a backup
38-
- name: Upload artifacts
39-
uses: actions/upload-artifact@v4
32+
MACOS_CERTIFICATE: ${{ secrets.MACOS_CERTIFICATE }}
33+
MACOS_CERTIFICATE_PWD: ${{ secrets.MACOS_CERTIFICATE_PWD }}
34+
APPLE_ID: ${{ secrets.APPLE_ID }}
35+
APPLE_TEAM_ID: ${{ secrets.APPLE_TEAM_ID }}
36+
APPLE_PASSWORD: ${{ secrets.APPLE_PASSWORD }}
37+
run: |
38+
echo $MACOS_CERTIFICATE | base64 --decode > certificate.p12
39+
security create-keychain -p "${{ secrets.KEYCHAIN_PASSWORD }}" build.keychain
40+
security default-keychain -s build.keychain
41+
security unlock-keychain -p "${{ secrets.KEYCHAIN_PASSWORD }}" build.keychain
42+
security import certificate.p12 -k build.keychain -P "$MACOS_CERTIFICATE_PWD" -T /usr/bin/codesign
43+
security set-key-partition-list -S apple-tool:,apple:,codesign: -s -k "${{ secrets.KEYCHAIN_PASSWORD }}" build.keychain
44+
45+
- name: Build and sign app
46+
env:
47+
APPLE_ID: ${{ secrets.APPLE_ID }}
48+
APPLE_TEAM_ID: ${{ secrets.APPLE_TEAM_ID }}
49+
APPLE_PASSWORD: ${{ secrets.APPLE_PASSWORD }}
50+
run: pnpm run make
51+
52+
- name: Create Release
53+
uses: softprops/action-gh-release@v1
54+
if: startsWith(github.ref, 'refs/tags/')
4055
with:
41-
name: macos-app
42-
path: out/make/**/*.zip
56+
files: |
57+
out/**/*.zip
58+
out/**/*.dmg
59+
env:
60+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,4 +89,4 @@ typings/
8989
out/
9090

9191
# Yalc
92-
.yalc/
92+
.yalc/.env

forge.config.ts

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,5 @@
11
import type { ForgeConfig } from "@electron-forge/shared-types";
2-
import { MakerSquirrel } from "@electron-forge/maker-squirrel";
32
import { MakerZIP } from "@electron-forge/maker-zip";
4-
import { MakerDeb } from "@electron-forge/maker-deb";
5-
import { MakerRpm } from "@electron-forge/maker-rpm";
63
import { VitePlugin } from "@electron-forge/plugin-vite";
74
import { FusesPlugin } from "@electron-forge/plugin-fuses";
85
import { FuseV1Options, FuseVersion } from "@electron/fuses";
@@ -15,6 +12,14 @@ const config: ForgeConfig = {
1512
appBundleId: "com.lovesworking.rn-dev-tools",
1613
appCategoryType: "public.app-category.developer-tools",
1714
executableName: "React Native DevTools",
15+
osxSign: {}, // object must exist even if empty
16+
// The osxSign config comes with defaults that work out of the box in most cases, so we recommend you start with an empty configuration object.
17+
// For a full list of configuration options, see https://js.electronforge.io/modules/_electron_forge_shared_types.InternalOptions.html#OsxSignOptions
18+
osxNotarize: {
19+
appleId: process.env.APPLE_ID,
20+
appleIdPassword: process.env.APPLE_PASSWORD,
21+
teamId: process.env.APPLE_TEAM_ID,
22+
},
1823
},
1924
rebuildConfig: {},
2025
makers: [

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "rn-better-dev-tools",
33
"productName": "React Native DevTools",
4-
"version": "1.0.17",
4+
"version": "1.0.18",
55
"description": "Enhanced developer tools for React Native applications (Only supports React Query DevTools Right Now)",
66
"main": ".vite/build/main.js",
77
"scripts": {
@@ -46,6 +46,7 @@
4646
"@typescript-eslint/parser": "^5.0.0",
4747
"@vitejs/plugin-react": "^4.3.4",
4848
"autoprefixer": "^10.4.16",
49+
"dotenv": "^16.4.7",
4950
"electron": "35.1.2",
5051
"eslint": "^8.0.1",
5152
"eslint-plugin-import": "^2.25.0",

pnpm-lock.yaml

Lines changed: 9 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)