Skip to content

Instantly share code, notes, and snippets.

@benmerckx
Last active February 8, 2022 14:37
Show Gist options
  • Save benmerckx/5be940846081a9d9a1128dbbfb36d2f7 to your computer and use it in GitHub Desktop.
Save benmerckx/5be940846081a9d9a1128dbbfb36d2f7 to your computer and use it in GitHub Desktop.
modd-bin
var binwrap = require("binwrap");
var path = require("path");
var packageInfo = require(path.join(__dirname, "package.json"));
var version = packageInfo.version.split('.').slice(0, 2).join('.');
var root = `https://github.com/cortesi/modd/releases/download/v${version}/modd-${version}`;
module.exports = binwrap({
dirname: __dirname,
binaries: [
"modd"
],
urls: {
"darwin-x64": root + "-osx64.tgz",
"linux-x64": root + "-linux64.tgz",
"win32-x64": root + "-windows64.zip"
}
});
{
"name": "modd-bin",
"version": "0.8.0",
"description": "modd binary",
"preferGlobal": true,
"main": "index.js",
"scripts": {
"install": "binwrap-install",
"prepare": "binwrap-prepare",
"test": "binwrap-test",
"prepublish": "npm test"
},
"license": "BSD-3-Clause",
"files": [
"index.js",
"bin"
],
"bin": {
"modd": "bin/modd"
},
"dependencies": {
"binwrap": "benmerckx/binwrap"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment