Skip to content

Commit

Permalink
fix electron/notarize import
Browse files Browse the repository at this point in the history
  • Loading branch information
xgi committed Nov 15, 2023
1 parent 0409acf commit 99f61b9
Show file tree
Hide file tree
Showing 3 changed files with 187 additions and 212 deletions.
6 changes: 4 additions & 2 deletions .erb/scripts/Notarize.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
const { notarize } = require('electron-notarize');
const { notarize } = require('@electron/notarize');
const { build } = require('../../package.json');

exports.default = async function notarizeMacos(context) {
Expand All @@ -13,7 +13,9 @@ exports.default = async function notarizeMacos(context) {
}

if (!('APPLE_ID' in process.env && 'APPLE_ID_PASS' in process.env)) {
console.warn('Skipping notarizing step. APPLE_ID and APPLE_ID_PASS env variables must be set');
console.warn(
'Skipping notarizing step. APPLE_ID and APPLE_ID_PASS env variables must be set'
);
return;
}

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@
"detect-port": "^1.3.0",
"discord-rpc": "^4.0.1",
"electron": "^27.0.4",
"electron-builder": "^23.6.0",
"electron-builder": "^24.6.4",
"electron-devtools-installer": "^3.2.0",
"eslint": "^8.5.0",
"eslint-config-airbnb": "^19.0.2",
Expand Down
Loading

0 comments on commit 99f61b9

Please sign in to comment.