/binary2sh

Prepare execution script for linking binaries from other tools/languages

Primary LanguageShellApache License 2.0Apache-2.0

binary2sh

This is posix shell version of binary2npm

Prepare execution script for linking binaries from other tools/languages

Currently supports only GitHub API

Installation

npm install dalisoft/binary2sh
# or
yarn install dalisoft/binary2sh
# or
bun add dalisoft/binary2sh

No-installation method

Replace jsona with your repository

npx --yes dalisoft/binary2sh --repository=jsona/jsona --name=jsona
# or
bunx dalisoft/binary2sh --repository=jsona/jsona --name=jsona
# or
curl -fsSL https://raw.githubusercontent.com/dalisoft/binary2sh/master/bin-dl.sh | sh /dev/stdin --repository=jsona/jsona --name=jsona

Environment variables

Name Description Required
GITHUB_TOKEN For GitHub API Yes

Options

Name Description Required
repository GitHub repository Yes
name Binary name Yes
version Binary version No

Usage

Replace jsona with your repository

binary2sh --repository=jsona/jsona --name=jsona --version=v0.6.0

License

Apache-2.0