diff --git a/cli/src/api/templates/js-binding.ts b/cli/src/api/templates/js-binding.ts index 80e3f06f..95413c62 100644 --- a/cli/src/api/templates/js-binding.ts +++ b/cli/src/api/templates/js-binding.ts @@ -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}\`) }