Skip to content

Commit

Permalink
Merge pull request #2004 from Gauravjeetsingh/devtools-shortcut
Browse files Browse the repository at this point in the history
Add the electron rebuild step to release script
  • Loading branch information
Gauravjeetsingh authored Jul 22, 2024
2 parents 07e2e39 + 57538c0 commit 7b5e3b2
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 7b5e3b2

Please sign in to comment.