-
Notifications
You must be signed in to change notification settings - Fork 70
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(nodejs): compatible with Windows builds (#183)
Signed-off-by: blu3beri <blu3beri@proton.me>
- Loading branch information
1 parent
32f4448
commit 4c54a62
Showing
2 changed files
with
14 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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) |