2023-12-28 00:46:05 +02:00
|
|
|
try {
|
2023-12-28 00:58:30 +02:00
|
|
|
module.exports = require('./index.node');
|
2023-12-28 00:46:05 +02:00
|
|
|
} catch {
|
|
|
|
const isLinux = process.platform === 'linux';
|
|
|
|
|
|
|
|
if (isLinux && process.arch === 'x64') {
|
2023-12-28 00:58:30 +02:00
|
|
|
module.exports = require('./index-x86_64-unknown-linux-gnu.node');
|
2023-12-28 00:46:05 +02:00
|
|
|
} else if (isLinux && process.arch === 'arm64') {
|
2023-12-28 00:58:30 +02:00
|
|
|
module.exports = require('./index-aarch64-unknown-linux-gnu.node');
|
2023-12-28 00:46:05 +02:00
|
|
|
} else {
|
|
|
|
throw new Error('Bliss: unsupported architecture');
|
|
|
|
}
|
|
|
|
}
|
|
|
|
export const { analyze, analyzeSync } = module;
|