Skip to content

Commit 172835b

Browse files
csett86saghul
andauthored
deps(mac): allow mac signing with password-less cert and update to current electron/notarize (#982)
* deps: update to current electron/notarize to fix notarization issues * ci: support password-less cert --------- Co-authored-by: Saúl Ibarra Corretgé <[email protected]>
1 parent aef6f8a commit 172835b

File tree

4 files changed

+68
-105
lines changed

4 files changed

+68
-105
lines changed

.github/workflows/ci.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,8 @@ jobs:
4646
node-version: '20'
4747
- name: Prepare for app signing and notarization
4848
env:
49-
MAC_CERT_PASSWORD: ${{ secrets.mac_cert_password }}
50-
if: ${{ env.MAC_CERT_PASSWORD }}
49+
MAC_CERT: ${{ secrets.mac_cert }}
50+
if: ${{ env.MAC_CERT }}
5151
run: |
5252
echo "CSC_LINK=${{ secrets.mac_cert }}" >> $GITHUB_ENV
5353
echo "CSC_KEY_PASSWORD=${{ secrets.mac_cert_password }}" >> $GITHUB_ENV

notarize.js

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
1-
const { notarize } = require('electron-notarize');
1+
const { notarize } = require('@electron/notarize');
22
const process = require('process');
3-
const pkgJson = require('./package.json');
43

54
exports.default = async function notarizing(context) {
65
const { electronPlatformName, appOutDir } = context;
@@ -16,8 +15,6 @@ exports.default = async function notarizing(context) {
1615
console.log(`Notarizing ${appPath} with user & password`);
1716

1817
return await notarize({
19-
tool: 'notarytool',
20-
appBundleId: pkgJson.build.appId,
2118
appPath,
2219
appleId: process.env.APPLE_ID,
2320
appleIdPassword: process.env.APPLE_ID_PASSWORD,
@@ -27,8 +24,6 @@ exports.default = async function notarizing(context) {
2724
console.log(`Notarizing ${appPath} with API key`);
2825

2926
return await notarize({
30-
tool: 'notarytool',
31-
appBundleId: pkgJson.build.appId,
3227
appPath,
3328
appleApiKey: process.env.API_KEY_FILE,
3429
appleApiKeyId: process.env.API_KEY_ID,

package-lock.json

Lines changed: 64 additions & 96 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
@@ -173,6 +173,7 @@
173173
"@babel/preset-env": "^7.16.11",
174174
"@babel/preset-flow": "^7.16.7",
175175
"@babel/preset-react": "^7.16.7",
176+
"@electron/notarize": "2.4.0",
176177
"@hapi/bourne": "^3.0.0",
177178
"@jitsi/js-utils": "2.0.5",
178179
"@svgr/webpack": "^6.2.1",
@@ -185,7 +186,6 @@
185186
"electron-context-menu": "^2.5.0",
186187
"electron-is-dev": "^1.2.0",
187188
"electron-log": "^4.3.2",
188-
"electron-notarize": "1.1.1",
189189
"electron-react-devtools": "0.5.3",
190190
"electron-updater": "5.0.5",
191191
"electron-window-state": "^5.0.3",

0 commit comments

Comments
 (0)