Skip to content

Commit

Permalink
fix: add rebuild step to release script
Browse files Browse the repository at this point in the history
  • Loading branch information
Gauravjeetsingh committed Jul 22, 2024
1 parent 54e530f commit 57538c0
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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:*",
Expand Down
4 changes: 4 additions & 0 deletions packaging/release
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 57538c0

Please sign in to comment.