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:
Milton Moura 2024-01-16 02:18:05 -01:00 committed by GitHub
parent 78de67e08f
commit ddeaf30f14
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -303,6 +303,20 @@ switch (platform) {
} }
} }
break 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: default:
throw new Error(\`Unsupported architecture on Linux: \${arch}\`) throw new Error(\`Unsupported architecture on Linux: \${arch}\`)
} }