Skip to content

Instantly share code, notes, and snippets.

@benmerckx
Last active March 4, 2020 21:58
Show Gist options
  • Save benmerckx/a5c5ea64ab917e3a666d1a841f35f0bf to your computer and use it in GitHub Desktop.
Save benmerckx/a5c5ea64ab917e3a666d1a841f35f0bf to your computer and use it in GitHub Desktop.
devd-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://dl.bintray.com/benmerckx/devd/devd-" + version;
module.exports = binwrap({
dirname: __dirname,
binaries: [
"devd"
],
urls: {
"darwin-x64": root + "-osx64.gz",
"linux-x64": root + "-linux64.tgz",
"win32-x64": root + "-windows64.zip"
}
});
{
"name": "devd-bin",
"version": "0.9.0",
"description": "devd 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": {
"devd": "bin/devd"
},
"dependencies": {
"binwrap": "benmerckx/binwrap"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment