Skip to content

Commit

Permalink
Merge pull request #1363 from nathaniel-daniel/mingw
Browse files Browse the repository at this point in the history
Add mingw support to npm package
  • Loading branch information
drager committed Mar 16, 2024
2 parents 2d69319 + 25a9029 commit e190fd6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion npm/binary.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@ const getPlatform = () => {
const type = os.type();
const arch = os.arch();

if (type === "Windows_NT" && arch === "x64") {
// https://github.com/nodejs/node/blob/c3664227a83cf009e9a2e1ddeadbd09c14ae466f/deps/uv/src/win/util.c#L1566-L1573
if ((type === "Windows_NT" || type.startsWith("MINGW32_NT-")) && arch === "x64") {
return windows;
}
if (type === "Linux" && arch === "x64") {
Expand Down

0 comments on commit e190fd6

Please sign in to comment.