diff --git a/package.json b/package.json index 912a34e4..1ec24e66 100644 --- a/package.json +++ b/package.json @@ -15,13 +15,13 @@ "build": "npm run build-css & npm run build-js", "build:local": "npm run build-css & npm run build-js:sm", "pack:mac": "npm run build && electron-builder --mac --x64", - "pack:macArm": "npx electron-rebuild --arch=arm64 && npm run build && electron-builder --mac --arm64", + "pack:macArm": "npm run build && electron-builder --mac --arm64", "pack:win": "npm run build && electron-builder --win --x64", "pack:win32": "npm run build && electron-builder --win --ia32", "pack:linux": "npm run build && electron-builder --linux --x64", "pack:berry": "export USE_SYSTEM_FPM=true && npm run build && electron-builder --linux --arm64", "dist:mac": "npm run build && electron-builder --mac --x64 --publish always", - "dist:macArm": "npx electron-rebuild --arch=arm64 && npm run build && electron-builder --mac --arm64 --publish always", + "dist:macArm": "npm run build && electron-builder --mac --arm64 --publish always", "dist:win": "npm run pack:win && electron-builder --win --x64 --publish always", "dist:win32": "npm run pack:win32 && electron-builder --win --ia32 --publish always", "build-css": "run-p build-css:*", diff --git a/packaging/release b/packaging/release index dd5970e2..bdf9f8d5 100755 --- a/packaging/release +++ b/packaging/release @@ -35,6 +35,10 @@ const release = async () => { console.log(`npm run dist:${platform}`); try { + if (platform === 'macArm') { + console.log(`Running rebuild for arm64:`); + await exec('npx electron-rebuild --arch=arm64'); + } setTimeout(() => { console.log(`npm run dist:${platform} is taking a long time, please wait...`); }, 590000);