Skip to content

Commit

Permalink
fix(js): use universal for darwin nodejs
Browse files Browse the repository at this point in the history
Signed-off-by: Berend Sliedrecht <[email protected]>
  • Loading branch information
berendsliedrecht committed Oct 31, 2023
1 parent 5540b75 commit 01c79c2
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions wrappers/javascript/aries-askar-nodejs/scripts/install.js
Original file line number Diff line number Diff line change
@@ -1,13 +1,14 @@
const { execSync } = require('node:child_process')
const { arch, platform } = require('os')
const { arch, platform: osPlatform } = require('os')

const archTable = {
x64: 'x86_64',
arm64: 'aarch64',
}

const targetPlatform = platform() === 'win32' ? 'windows' : platform()
const targetArchitecture = archTable[arch()]
const platform = osPlatform()
const targetPlatform = platform === 'win32' ? 'windows' : platform
const targetArchitecture = platform == 'darwin' ? 'universal' : archTable[arch]

const command = `node-pre-gyp install --target_arch=${targetArchitecture} --target_platform=${targetPlatform}`

Expand Down

0 comments on commit 01c79c2

Please sign in to comment.