diff --git a/_scripts/build.js b/_scripts/build.js index 4fe0acdf..67b46f5c 100644 --- a/_scripts/build.js +++ b/_scripts/build.js @@ -16,10 +16,14 @@ if (platform == 'darwin') { } else if (platform == 'linux') { let arch = Arch.x64 - if (args[2] === 'arm') { + if (args[2] === 'arm64') { arch = Arch.arm64 } + if (args[3] === 'arm32') { + arch = Arch.armv7l + } + targets = Platform.LINUX.createTarget(['deb', 'zip', 'apk', 'rpm', 'AppImage', 'pacman'], arch) } diff --git a/package.json b/package.json index 4f664ba4..21b9de64 100644 --- a/package.json +++ b/package.json @@ -120,9 +120,11 @@ }, "scripts": { "build": "run-s rebuild:electron pack build-release", - "build:arm": "run-s rebuild:electron pack build-release:arm", + "build:arm64": "run-s rebuild:electron pack build-release:arm64", + "build:arm32": "run-s rebuild:electron pack build-release:arm32", "build-release": "node _scripts/build.js", - "build-release:arm": "node _scripts/build.js arm", + "build-release:arm64": "node _scripts/build.js arm64", + "build-release:arm32": "node _scripts/build.js arm32", "debug": "run-s rebuild:electron debug-runner", "debug-runner": "node _scripts/dev-runner.js --remote-debug", "dev": "run-s rebuild:electron dev-runner",