diff --git a/freedata_gui/build/entitlements.plist b/freedata_gui/build/entitlements.plist new file mode 100644 index 00000000..983f1099 --- /dev/null +++ b/freedata_gui/build/entitlements.plist @@ -0,0 +1,16 @@ + + + + + com.apple.security.cs.allow-jit + + com.apple.security.cs.allow-unsigned-executable-memory + + com.apple.security.cs.disable-library-validation + + com.apple.security.cs.disable-executable-page-protection + + com.apple.security.automation.apple-events + + + \ No newline at end of file diff --git a/freedata_gui/build/icon.png b/freedata_gui/build/icon.png new file mode 100644 index 00000000..2e346c91 Binary files /dev/null and b/freedata_gui/build/icon.png differ diff --git a/freedata_gui/build/notarize_macos.js b/freedata_gui/build/notarize_macos.js new file mode 100644 index 00000000..6cbb37a0 --- /dev/null +++ b/freedata_gui/build/notarize_macos.js @@ -0,0 +1,24 @@ +const { notarize } = require('@electron/notarize'); + +async function notarizing(context) { + const { electronPlatformName, appOutDir } = context; + console.log("Notarization...") + if (electronPlatformName !== 'darwin') { + console.log("--> Platform:" + electronPlatformName + " detected: not a APPLE system. Skipping") + return; + } + + console.log("--> Platform:" + electronPlatformName + " detected: Trying to notarize app.") + const appName = context.packager.appInfo.productFilename; + + return await notarize({ + tool: 'notarytool', + appBundleId: 'app.freedata', + appPath: `${appOutDir}/${appName}.app`, + appleId: process.env.APPLE_ID, + appleIdPassword: process.env.APPLE_ID_PASSWORD, + teamId: process.env.APPLE_TEAM_ID + }); +} + +exports.default = notarizing;