Skip to content

Commit b325288

Browse files
ci(mac): enable code signing and notarization (#819)
1 parent 5ff2494 commit b325288

5 files changed

Lines changed: 13 additions & 2 deletions

File tree

.github/workflows/build-sponsored.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,11 @@ jobs:
5555
env:
5656
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
5757
VITE_SPONSORED: true
58+
CSC_LINK: ${{ secrets.CSC_LINK }}
59+
CSC_KEY_PASSWORD: ${{ secrets.CSC_KEY_PASSWORD }}
60+
APPLE_ID: ${{ secrets.APPLE_ID }}
61+
APPLE_APP_SPECIFIC_PASSWORD: ${{ secrets.APPLE_APP_SPECIFIC_PASSWORD }}
62+
APPLE_TEAM_ID: ${{ secrets.APPLE_TEAM_ID }}
5863

5964
- name: Build application (sponsored other platforms)
6065
if: matrix.platform != 'mac'

.github/workflows/release.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,11 @@ jobs:
6262
run: pnpm run build:${{ matrix.platform }}:${{ matrix.arch }}
6363
env:
6464
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
65+
CSC_LINK: ${{ secrets.CSC_LINK }}
66+
CSC_KEY_PASSWORD: ${{ secrets.CSC_KEY_PASSWORD }}
67+
APPLE_ID: ${{ secrets.APPLE_ID }}
68+
APPLE_APP_SPECIFIC_PASSWORD: ${{ secrets.APPLE_APP_SPECIFIC_PASSWORD }}
69+
APPLE_TEAM_ID: ${{ secrets.APPLE_TEAM_ID }}
6570

6671
- name: Build application (other platforms)
6772
if: matrix.platform != 'mac'

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ auto-imports.d.ts
1313
.github/*-instructions.md
1414
.env
1515
.env.*
16+
electron-builder.env
1617
docs/superpowers
1718
docs/website/.vitepress/cache
1819
docs/website/.vitepress/dist

electron-builder.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
"entitlements": "build/entitlements.mac.inherit.plist",
1818
"category": "public.app-category.productivity",
1919
"hardenedRuntime": true,
20-
"identity": null
20+
"notarize": true
2121
},
2222
"win": {
2323
"target": ["nsis", "portable"],

electron-builder.sponsored.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
"entitlements": "build/entitlements.mac.inherit.plist",
1919
"category": "public.app-category.productivity",
2020
"hardenedRuntime": true,
21-
"identity": null
21+
"notarize": true
2222
},
2323
"win": {
2424
"target": ["nsis", "portable"],

0 commit comments

Comments
 (0)