From db28b98d5aa246fec71d2e7358a6fc093502d4f2 Mon Sep 17 00:00:00 2001 From: morishin Date: Fri, 18 Oct 2024 10:51:37 +0900 Subject: [PATCH] Use universal binary --- build/entitlement.plist | 2 ++ electron-builder.yml | 7 +++++-- scripts/notarize.js | 2 +- 3 files changed, 8 insertions(+), 3 deletions(-) diff --git a/build/entitlement.plist b/build/entitlement.plist index 67ebe4ec..98edeb4a 100644 --- a/build/entitlement.plist +++ b/build/entitlement.plist @@ -6,5 +6,7 @@ com.apple.security.cs.disable-library-validation + com.apple.security.cs.allow-jit + diff --git a/electron-builder.yml b/electron-builder.yml index 7e3611a7..3f15def3 100644 --- a/electron-builder.yml +++ b/electron-builder.yml @@ -32,9 +32,12 @@ win: - nsis mac: + singleArchFiles: "*" target: - - zip - - dmg + - target: dmg + arch: universal + - target: zip + arch: universal category: public.app-category.developer-tools hardenedRuntime: true entitlements: ./build/entitlement.plist diff --git a/scripts/notarize.js b/scripts/notarize.js index c290b0a7..a8624d7a 100644 --- a/scripts/notarize.js +++ b/scripts/notarize.js @@ -7,7 +7,7 @@ module.exports = async function () { return; } - const appPath = path.resolve(__dirname, "../dist/production/mac/Bdash.app"); + const appPath = path.resolve(__dirname, "../dist/production/mac-universal/Bdash.app"); if (!fs.existsSync(appPath)) { throw new Error(`Cannot find application at: ${appPath}`);