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:
parent
fc4cfc51bd
commit
10eaa53b26
@ -97,7 +97,7 @@ The alternative values `win32` (for Windows) or `darwin`, `mac` (for OSX) can al
|
|||||||
-a, --arch <value>
|
-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]
|
#### [electron-version]
|
||||||
|
|
||||||
|
@ -21,7 +21,7 @@ if (require.main === module) {
|
|||||||
})
|
})
|
||||||
.option('-n, --name <value>', 'app name')
|
.option('-n, --name <value>', 'app name')
|
||||||
.option('-p, --platform <value>', '\'osx\', \'linux\' or \'windows\'')
|
.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('-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('--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/')
|
.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/')
|
||||||
|
@ -11,7 +11,7 @@ function inferPlatform() {
|
|||||||
|
|
||||||
function inferArch() {
|
function inferArch() {
|
||||||
const arch = os.arch();
|
const arch = os.arch();
|
||||||
if (arch !== 'ia32' && arch !== 'x64') {
|
if (arch !== 'ia32' && arch !== 'x64' && arch !== 'arm') {
|
||||||
throw new Error(`Incompatible architecture ${arch} detected`);
|
throw new Error(`Incompatible architecture ${arch} detected`);
|
||||||
}
|
}
|
||||||
return arch;
|
return arch;
|
||||||
|
Loading…
Reference in New Issue
Block a user