[Fix] Skip notarize without env (#8861)

* fix: Allows notarization to continue without env vars

Changes notarization process to warn instead of throwing an error when `APPLE_ID` or `APPLE_ID_APP_PASSWORD` environment variables are missing.  This allows the process to continue.

* feat: adds notarization step to build process

Configures electron-builder to notarize the desktop, server, and server-api applications after signing.
This commit is contained in:
Kifungo A
2025-03-13 18:02:29 +01:00
committed by GitHub
parent ce83ff3e4d
commit c05b6512ef
4 changed files with 5 additions and 1 deletions
+1
View File
@@ -55,6 +55,7 @@
"artifactName": "${name}-${version}.${ext}",
"productName": "Ever Gauzy Desktop",
"copyright": "Copyright © 2019-Present. Ever Co. LTD",
"afterSign": "tools/notarize.js",
"dmg": {
"sign": false
},
+1
View File
@@ -46,6 +46,7 @@
"artifactName": "${name}-${version}.${ext}",
"productName": "Ever Gauzy API Server",
"copyright": "Copyright © 2019-Present. Ever Co. LTD",
"afterSign": "tools/notarize.js",
"dmg": {
"sign": false
},
+1
View File
@@ -46,6 +46,7 @@
"artifactName": "${name}-${version}.${ext}",
"productName": "Gauzy Server",
"copyright": "Copyright © 2019-Present. Ever Co. LTD",
"afterSign": "tools/notarize.js",
"dmg": {
"sign": false
},
+2 -1
View File
@@ -22,7 +22,8 @@ exports.default = async (context) => {
}
if (!APPLE_ID || !APPLE_ID_APP_PASSWORD) {
throw new Error('`APPLE_ID` or `APPLE_ID_APP_PASSWORD` is missing');
console.warn('WARN: `APPLE_ID` or `APPLE_ID_APP_PASSWORD` is missing');
return;
}
try {