Skip to content

Commit 210d082

Browse files
committed
MacOS binary package notarization
GH workflow for release deployment
1 parent 8ed4da4 commit 210d082

File tree

4 files changed

+54
-46
lines changed

4 files changed

+54
-46
lines changed

.github/workflows/release.yml

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,3 +65,47 @@ jobs:
6565
- name: Publish to Snap Store
6666
if: env.SNAPCRAFT_STORE_CREDENTIALS != ''
6767
run: snapcraft upload --release=stable binaries/*.snap
68+
69+
release-macos:
70+
runs-on: macos-latest
71+
72+
steps:
73+
- uses: actions/checkout@v4
74+
75+
- name: Use Node.js 22.x
76+
uses: actions/setup-node@v4
77+
with:
78+
node-version: 22.x
79+
cache: 'npm'
80+
81+
- run: npm ci --no-audit --no-optional
82+
- run: npm run webpack:production
83+
84+
- name: Build and notarize macOS app
85+
run: npm run build:mac
86+
env:
87+
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
88+
APPLE_API_KEY: ${{ secrets.APPLE_API_KEY }}
89+
APPLE_API_KEY_ID: ${{ secrets.APPLE_API_KEY_ID }}
90+
APPLE_API_ISSUER: ${{ secrets.APPLE_API_ISSUER }}
91+
92+
- name: Upload artifacts for manual runs
93+
if: github.event_name == 'workflow_dispatch'
94+
uses: actions/upload-artifact@v4
95+
with:
96+
name: macos-packages
97+
path: |
98+
binaries/*.dmg
99+
binaries/*.zip
100+
binaries/latest-mac.yml
101+
102+
- name: Upload macOS artifacts to release
103+
if: github.event_name == 'release'
104+
uses: softprops/action-gh-release@v2
105+
with:
106+
files: |
107+
binaries/*.dmg
108+
binaries/*.zip
109+
binaries/latest-mac.yml
110+
env:
111+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

electron-builder.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,7 @@ mac:
2222
target: default
2323
entitlements: 'build/entitlements.mac.plist'
2424
entitlementsInherit: 'build/entitlements.mac.plist'
25-
notarize:
26-
teamId: 4KRG6BGC37
25+
notarize: true
2726

2827
linux:
2928
target:

package-lock.json

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

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
"@babel/preset-env": "^7.28.3",
3535
"@babel/preset-react": "^7.27.1",
3636
"@babel/register": "^7.28.3",
37-
"@electron/notarize": "^1.2.4",
37+
"@electron/notarize": "^3.1.1",
3838
"babel-loader": "^10.0.0",
3939
"c8": "^10.1.3",
4040
"css-loader": "^7.1.2",

0 commit comments

Comments
 (0)