From 1fd2f3a9a11e46bfd37f7f1bb5109d6ad9d1cedf Mon Sep 17 00:00:00 2001 From: morishin Date: Fri, 14 Jun 2024 11:13:08 +0900 Subject: [PATCH] Use universal binary for macOS --- electron-builder.yml | 6 ++++-- scripts/notarize.js | 2 +- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/electron-builder.yml b/electron-builder.yml index 7e3611a7..b7702441 100644 --- a/electron-builder.yml +++ b/electron-builder.yml @@ -33,8 +33,10 @@ win: mac: 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 98cf61d4..3d6d73d5 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}`);