Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions npm/binary.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,11 @@ const getPlatform = () => {
const getBinary = () => {
const platform = getPlatform();
const version = require("./package.json").version;
const author = "rustwasm";
const author = "drager";
const name = "wasm-pack";
const url = `https://github.com/${author}/${name}/releases/download/v${version}/${name}-v${version}-${platform}.tar.gz`;
return new Binary(platform === windows ? "wasm-pack.exe" : "wasm-pack", url, {
installDirectory: join(__dirname, "binary")
installDirectory: join(__dirname, "binary"),
});
};

Expand All @@ -44,7 +44,7 @@ const install = () => {
const run = () => {
const binary = getBinary();
binary.run();
}
};

module.exports = {
install,
Expand Down
Loading