feat(cli): Add support for s390x linux arch in js bindings template (#1901)
Signed-off-by: Milton Moura <miltonmoura@gmail.com>
This commit is contained in:
parent
78de67e08f
commit
ddeaf30f14
1 changed files with 14 additions and 0 deletions
|
@ -303,6 +303,20 @@ switch (platform) {
|
|||
}
|
||||
}
|
||||
break
|
||||
case 's390x':
|
||||
localFileExisted = existsSync(
|
||||
join(__dirname, '${localName}.linux-s390x-gnu.node')
|
||||
)
|
||||
try {
|
||||
if (localFileExisted) {
|
||||
nativeBinding = require('./${localName}.linux-s390x-gnu.node')
|
||||
} else {
|
||||
nativeBinding = require('${pkgName}-linux-s390x-gnu')
|
||||
}
|
||||
} catch (e) {
|
||||
loadError = e
|
||||
}
|
||||
break
|
||||
default:
|
||||
throw new Error(\`Unsupported architecture on Linux: \${arch}\`)
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue