Skip to content

Commit 429d4c0

Browse files
committed
windows
1 parent 6c34cec commit 429d4c0

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

npm/postinstall.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,10 @@ const os = require("os");
66
const {version} = require("./package.json");
77

88
const prefix = getPlatformPrefix();
9-
const url = `https://github.com/graphql-java/graphql-anonymizer/releases/download/v${version}/graphql-anonymizer-${version}-${prefix}`;
10-
9+
let url = `https://github.com/graphql-java/graphql-anonymizer/releases/download/v${version}/graphql-anonymizer-${version}-${prefix}`;
10+
if (prefix === 'windows') {
11+
url += '.exe';
12+
}
1113
axios({url, responseType: "stream"})
1214
.then(res => {
1315
return res.data.pipe(createWriteStream(join(__dirname, "graphql-anonymizer")));

0 commit comments

Comments
 (0)