Skip to content

Commit

Permalink
Merge pull request #259 from berendsliedrecht/js-call-platform
Browse files Browse the repository at this point in the history
fix js install script issue with platform
  • Loading branch information
berendsliedrecht authored Oct 27, 2023
2 parents 9be638a + a53bf27 commit ce52391
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ const archTable = {
arm64: 'aarch64'
}

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

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

0 comments on commit ce52391

Please sign in to comment.