11const shouldNotarize = process . env . NOTARIZE === "true" ;
2+ const isSigned = process . env . CSC_IDENTITY_AUTO_DISCOVERY !== "false" ;
23module . exports = {
34 parallel : false ,
45 pluginOptions : {
@@ -12,6 +13,7 @@ module.exports = {
1213 appId : "com.stereum.launcher" ,
1314 productName : "Stereum-Launcher" ,
1415 ...( shouldNotarize ? { afterSign : "@sapien99/vue-cli-plugin-electron-builder-notarize" } : { } ) ,
16+ ...( ! isSigned ? { afterPack : "./afterPackMac.js" } : { } ) ,
1517 buildDependenciesFromSource : false ,
1618 nodeGypRebuild : false ,
1719 npmRebuild : false ,
@@ -27,8 +29,16 @@ module.exports = {
2729 artifactName : "Stereum-Launcher-${version}.${ext}" ,
2830 } ,
2931 mac : {
30- hardenedRuntime : true ,
31- entitlements : "./node_modules/@sapien99/vue-cli-plugin-electron-builder-notarize/entitlements.mac.inherit.plist" ,
32+ // hardenedRuntime requires consistent Team IDs across all binaries; only enable
33+ // when actually signing, otherwise the Electron Framework's pre-signed Team ID
34+ // differs from the unsigned main binary and dyld refuses to load it (macOS 14.4+)
35+ hardenedRuntime : isSigned ,
36+ ...( isSigned
37+ ? {
38+ entitlements : "./node_modules/@sapien99/vue-cli-plugin-electron-builder-notarize/entitlements.mac.inherit.plist" ,
39+ entitlementsInherit : "./node_modules/@sapien99/vue-cli-plugin-electron-builder-notarize/entitlements.mac.inherit.plist" ,
40+ }
41+ : { } ) ,
3242 gatekeeperAssess : false ,
3343 artifactName : "Stereum-Launcher-${version}.${ext}" ,
3444 x64ArchFiles : "**/*.node" ,
0 commit comments