From 87e096fec677542b0e33c15925bc84361fc0e258 Mon Sep 17 00:00:00 2001 From: Shintaro Morikawa Date: Fri, 14 Jun 2024 12:47:26 +0900 Subject: [PATCH] Revert "Use universal binary for macOS" --- electron-builder.yml | 7 ++----- scripts/notarize.js | 5 ++--- 2 files changed, 4 insertions(+), 8 deletions(-) diff --git a/electron-builder.yml b/electron-builder.yml index 3f15def3..7e3611a7 100644 --- a/electron-builder.yml +++ b/electron-builder.yml @@ -32,12 +32,9 @@ win: - nsis mac: - singleArchFiles: "*" target: - - target: dmg - arch: universal - - target: zip - arch: universal + - zip + - dmg category: public.app-category.developer-tools hardenedRuntime: true entitlements: ./build/entitlement.plist diff --git a/scripts/notarize.js b/scripts/notarize.js index a8624d7a..98cf61d4 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-universal/Bdash.app"); + const appPath = path.resolve(__dirname, "../dist/production/mac/Bdash.app"); if (!fs.existsSync(appPath)) { throw new Error(`Cannot find application at: ${appPath}`); @@ -16,12 +16,11 @@ module.exports = async function () { console.log("afterSign: Notarizing"); await notarize({ - tool: "notarytool", appBundleId: "io.bdash", appPath: appPath, appleId: process.env.APPLE_ID, appleIdPassword: process.env.APPLE_PASSWORD, - teamId: process.env.ASC_PROVIDER, + ascProvider: process.env.ASC_PROVIDER, }); console.log("afterSign: Notarized");