Skip to content

Commit ad395c1

Browse files
committed
Skip notarization if env vars are missing
1 parent cfc28f2 commit ad395c1

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

scripts/notarize.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,8 @@ async function notarizeApp(context) {
1414

1515
const { APPLE_ID, APPLE_ID_PASSWORD } = process.env
1616
if (!APPLE_ID || !APPLE_ID_PASSWORD) {
17-
throw new Error('APPLE_ID and APPLE_ID_PASSWORD env vars are required for notarization.')
17+
console.error('APPLE_ID and APPLE_ID_PASSWORD env vars required to notarize. Skipping.')
18+
return
1819
}
1920

2021
const appOutDir = context.appOutDir

0 commit comments

Comments
 (0)