https://github.com/dalisoft/binary2sh
Prepare execution script for linking binaries from other tools/languages
https://github.com/dalisoft/binary2sh
binary link remote
Last synced: 10 months ago
JSON representation
Prepare execution script for linking binaries from other tools/languages
- Host: GitHub
- URL: https://github.com/dalisoft/binary2sh
- Owner: dalisoft
- License: apache-2.0
- Created: 2024-04-21T19:29:18.000Z (about 2 years ago)
- Default Branch: master
- Last Pushed: 2024-05-05T22:10:36.000Z (about 2 years ago)
- Last Synced: 2025-04-03T16:16:19.764Z (about 1 year ago)
- Topics: binary, link, remote
- Language: Shell
- Homepage:
- Size: 22.5 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# binary2sh
> This is `posix shell` version of
> [binary2npm](https://github.com/dalisoft/binary2npm)
Prepare execution script for linking binaries from other tools/languages
Currently supports only **GitHub API**
## Installation
```sh
npm install dalisoft/binary2sh
# or
yarn install dalisoft/binary2sh
# or
bun add dalisoft/binary2sh
```
## No-installation method
> Replace `jsona` with your repository
```sh
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](https://docs.github.com/rest/overview/resources-in-the-rest-api#rate-limiting) | Yes |
## Options
| Name | Description | Required |
| ------------ | ----------------- | -------- |
| `repository` | GitHub repository | Yes |
| `name` | Binary name | Yes |
| `version` | Binary version | No |
## Usage
> Replace `jsona` with your repository
```sh
binary2sh --repository=jsona/jsona --name=jsona --version=v0.6.0
```
## License
Apache-2.0