mirror of
https://github.com/Llewellynvdm/nativefier.git
synced 2025-01-24 15:48:27 +00:00
Validate the --arch argument
This commit is contained in:
parent
e1d0264e2d
commit
ca6af870d3
6
index.js
6
index.js
@ -18,6 +18,12 @@ module.exports = function packager (opts, cb) {
|
|||||||
|
|
||||||
if (!platform || !arch || !version) cb(new Error('Must specify platform, arch and version'))
|
if (!platform || !arch || !version) cb(new Error('Must specify platform, arch and version'))
|
||||||
|
|
||||||
|
switch (arch) {
|
||||||
|
case 'ia32': break
|
||||||
|
case 'x64': break
|
||||||
|
default: cb(new Error('Unsupported arch'))
|
||||||
|
}
|
||||||
|
|
||||||
switch (platform) {
|
switch (platform) {
|
||||||
case 'darwin': packager = mac; break
|
case 'darwin': packager = mac; break
|
||||||
case 'linux': packager = linux; break
|
case 'linux': packager = linux; break
|
||||||
|
Loading…
x
Reference in New Issue
Block a user