2
2
mirror of https://github.com/Llewellynvdm/nativefier.git synced 2024-11-15 17:27:08 +00:00

Add ARM build support (#360)

This commit is contained in:
Matt Harris 2017-05-06 20:11:51 +01:00 committed by Ronan Jouchet
parent fc4cfc51bd
commit 10eaa53b26
3 changed files with 3 additions and 3 deletions

View File

@ -97,7 +97,7 @@ The alternative values `win32` (for Windows) or `darwin`, `mac` (for OSX) can al
-a, --arch <value>
```
Processor architecture, automatically determined based on the current OS. Can be overwritten by specifying either `ia32` or `x64`.
Processor architecture, automatically determined based on the current OS. Can be overwritten by specifying either `ia32`, `x64` or `armv7l`.
#### [electron-version]

View File

@ -21,7 +21,7 @@ if (require.main === module) {
})
.option('-n, --name <value>', 'app name')
.option('-p, --platform <value>', '\'osx\', \'linux\' or \'windows\'')
.option('-a, --arch <value>', '\'ia32\' or \'x64\'')
.option('-a, --arch <value>', '\'ia32\' or \'x64\' or \'armv7l\'')
.option('-e, --electron-version <value>', 'electron version to package, without the \'v\', see https://github.com/atom/electron/releases')
.option('--no-overwrite', 'do not override output directory if it already exists, defaults to false')
.option('-c, --conceal', 'packages the source code within your app into an archive, defaults to false, see http://electron.atom.io/docs/v0.36.0/tutorial/application-packaging/')

View File

@ -11,7 +11,7 @@ function inferPlatform() {
function inferArch() {
const arch = os.arch();
if (arch !== 'ia32' && arch !== 'x64') {
if (arch !== 'ia32' && arch !== 'x64' && arch !== 'arm') {
throw new Error(`Incompatible architecture ${arch} detected`);
}
return arch;