Last active
February 8, 2022 14:37
-
-
Save benmerckx/5be940846081a9d9a1128dbbfb36d2f7 to your computer and use it in GitHub Desktop.
modd-bin
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" | |
} | |
}); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"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