Skip to content

Commit

Permalink
Fixing Node.js Windows value for os.platform().
Browse files Browse the repository at this point in the history
I assumed it was the same as `GOOS` (`windows`) but the docs for
Node.js say otherwise (`win32`):
https://nodejs.org/docs/latest-v16.x/api/os.html#osplatform

Fixes #6.
  • Loading branch information
Danny Hermes committed Feb 9, 2022
1 parent 070363a commit 4b7de50
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions index.template.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,10 +34,10 @@ function chooseBinary() {
if (platform === 'linux' && arch === 'arm64') {
return `main-linux-arm64-${VERSION}`
}
if (platform === 'windows' && arch === 'x64') {
if (platform === 'win32' && arch === 'x64') {
return `main-windows-amd64-${VERSION}`
}
if (platform === 'windows' && arch === 'arm64') {
if (platform === 'win32' && arch === 'arm64') {
return `main-windows-arm64-${VERSION}`
}

Expand Down

0 comments on commit 4b7de50

Please sign in to comment.