-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathindex.js
24 lines (22 loc) · 841 Bytes
/
index.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
var binwrap = require("binwrap");
var path = require("path");
var packageInfo = require(path.join(__dirname, "package.json"));
var version = packageInfo.version;
var root =
"https://github.com/zwilias/elm-json/releases/download/v" +
version +
"/elm-json-v" +
version;
module.exports = binwrap({
dirname: __dirname,
binaries: ["elm-json"],
urls: {
"darwin-arm64": root + "-aarch64-apple-darwin.tar.gz",
"darwin-x64": root + "-x86_64-apple-darwin.tar.gz",
"linux-x64": root + "-x86_64-unknown-linux-musl.tar.gz",
"linux-arm": root + "-armv7-unknown-linux-musleabihf.tar.gz",
"linux-arm64": root + "-armv7-unknown-linux-musleabihf.tar.gz",
"win32-x64": root + "-x86_64-pc-windows-msvc.tar.gz",
"win32-ia32": root + "-x86_64-pc-windows-msvc.tar.gz"
}
});