Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion wrappers/javascript/indy-vdr-nodejs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
"clean": "rimraf -rf ./build",
"compile": "tsc -p tsconfig.build.json",
"test": "jest",
"install": "node-pre-gyp install --target_arch=$(node scripts/arch.js)"
"install": "node-pre-gyp install --target_arch=$(node scripts/arch.js) --target_platform=$(node scripts/platform.js)"
},
"devDependencies": {
"@babel/core": "^7.12.9",
Expand Down
13 changes: 13 additions & 0 deletions wrappers/javascript/indy-vdr-nodejs/scripts/platform.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
/* eslint-disable @typescript-eslint/no-var-requires */
/* eslint-disable no-console */
/* eslint-disable @typescript-eslint/no-unsafe-assignment */
/* eslint-disable no-undef */
const os = require('os')

// Find appropriate target architecture for retrieving the anoncreds library
const platform = os.platform()

// We swap win32 with windows as that is the key that we use
const targetPlatform = platform == 'win32' ? 'windows' : platform

console.log(targetPlatform)