diff --git a/build/entitlements-sandbox.mac.plist b/build/entitlements-sandbox.mac.plist new file mode 100644 index 000000000..e3c0aaefe --- /dev/null +++ b/build/entitlements-sandbox.mac.plist @@ -0,0 +1,33 @@ + + + + + + com.apple.security.cs.allow-jit + + + + com.apple.security.cs.disable-library-validation + + + + com.apple.security.app-sandbox + + com.apple.security.inherit + + + + com.apple.security.network.client + + + + com.apple.security.files.user-selected.read-write + + + - com.apple.security.app-sandbox - - com.apple.security.network.client diff --git a/electron-builder.ts b/electron-builder.ts index bfd636118..e996979c1 100644 --- a/electron-builder.ts +++ b/electron-builder.ts @@ -182,11 +182,13 @@ if (process.env.ED_SIGNTOOL_SUBJECT_NAME && process.env.ED_SIGNTOOL_THUMBPRINT) /** * Allow specifying ElectronTeamID via env vars * @param {string} process.env.APPLE_TEAM_ID + * Workaround for https://github.com/electron-userland/electron-builder/issues/7995 */ if (process.env.APPLE_TEAM_ID) { config.mac.extendInfo = { ElectronTeamID: process.env.APPLE_TEAM_ID, }; + config.mac.entitlements = "./build/entitlements-sandbox.mac.plist"; } /**