Skip to content

Commit

Permalink
feat: add apple id
Browse files Browse the repository at this point in the history
  • Loading branch information
kambydyne committed Sep 29, 2021
1 parent f1205cb commit 499df2e
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/monokle-sign-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,8 @@ jobs:
NOTARIZE: true
CSC_LINK: ${{ secrets.MONOKLE_MACOS_CERTS }}
CSC_KEY_PASSWORD: ${{ secrets.MONOKLE_MACOS_CERTS_PASSWORD }}
APPLE_ID: ${{ secrets.APPLE_ID }}
APPLE_ID_PASSWORD: ${{ secrets.APPLE_ID_PASSWORD }}

# Check Binary Size
- name: Build Succeeded
Expand Down
4 changes: 2 additions & 2 deletions notarization/afterSignHook.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,8 @@ module.exports = async function (params) {
await electron_notarize.notarize({
appBundleId: appId,
appPath: appPath,
appleId: process.env.appleId,
appleIdPassword: process.env.appleIdPassword,
appleId: process.env.APPLE_ID,
appleIdPassword: process.env.APPLE_ID_PASSWORD,
});
} catch (error) {
console.error(error);
Expand Down
3 changes: 3 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -144,11 +144,14 @@
"category": "public.app-category.utilities",
"icon": "build/icon.png",
"hardenedRuntime": true,
"gatekeeperAssess": false,
"entitlements": "./electron/src/entitlements.mac.inherit.plist",
"entitlementsInherit": "./electron/src/entitlements.mac.inherit.plist",
"target": [
"dmg"
]
},
"artifactName": "${productName}-${version}.${ext}",
"afterSign": "./notarization/afterSignHook.js",
"dmg": {
"icon": "build/icon.png",
Expand Down

0 comments on commit 499df2e

Please sign in to comment.