Add build support for amrv7l (#956)

This commit is contained in:
James Gundlach 2021-03-06 11:19:54 -05:00 committed by GitHub
parent ada42a8c6c
commit cd13691980
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 9 additions and 3 deletions

View File

@ -16,10 +16,14 @@ if (platform == 'darwin') {
} else if (platform == 'linux') { } else if (platform == 'linux') {
let arch = Arch.x64 let arch = Arch.x64
if (args[2] === 'arm') { if (args[2] === 'arm64') {
arch = Arch.arm64 arch = Arch.arm64
} }
if (args[3] === 'arm32') {
arch = Arch.armv7l
}
targets = Platform.LINUX.createTarget(['deb', 'zip', 'apk', 'rpm', 'AppImage', 'pacman'], arch) targets = Platform.LINUX.createTarget(['deb', 'zip', 'apk', 'rpm', 'AppImage', 'pacman'], arch)
} }

View File

@ -120,9 +120,11 @@
}, },
"scripts": { "scripts": {
"build": "run-s rebuild:electron pack build-release", "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": "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": "run-s rebuild:electron debug-runner",
"debug-runner": "node _scripts/dev-runner.js --remote-debug", "debug-runner": "node _scripts/dev-runner.js --remote-debug",
"dev": "run-s rebuild:electron dev-runner", "dev": "run-s rebuild:electron dev-runner",