From 7dedd7c7fff76f6954f04b0e2d0e99853c782a00 Mon Sep 17 00:00:00 2001 From: Michael Telatynski <7t3chguy@gmail.com> Date: Mon, 4 Nov 2024 13:28:14 +0000 Subject: [PATCH] Stash Signed-off-by: Michael Telatynski <7t3chguy@gmail.com> --- build/entitlements-sandbox.mac.plist | 33 ++++++++++++++++++++++++++++ build/entitlements.mac.plist | 4 ---- electron-builder.ts | 2 ++ 3 files changed, 35 insertions(+), 4 deletions(-) create mode 100644 build/entitlements-sandbox.mac.plist diff --git a/build/entitlements-sandbox.mac.plist b/build/entitlements-sandbox.mac.plist new file mode 100644 index 00000000..e3c0aaef --- /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 bfd63611..e996979c 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"; } /**