Skip to content

Commit 2036ee1

Browse files
committed
feat: add bash shell install script
Add a POSIX-compliant shell installation script for the tasker binary, adapted from the localias project. This script provides a convenient way to install tasker without requiring Go to be installed. Features: - Automatic platform and architecture detection - Support for Linux, macOS, and Windows - Automatic extraction of tar.gz/zip archives - Version selection (latest or specific version) - Custom installation directory - Non-interactive mode for CI/CD environments - Comprehensive error handling and user feedback The script supports the following platforms and architectures: - Linux: amd64, arm64, 386, armv6 - macOS (Darwin): amd64, arm64 - Windows: amd64 Also updated README.md with detailed installation instructions including examples for various use cases. Helpful for installing on GitHub Actions and other Linux environments.
1 parent 22f96d8 commit 2036ee1

2 files changed

Lines changed: 528 additions & 0 deletions

File tree

README.md

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,40 @@ Find gronx in [pkg.go.dev](https://pkg.go.dev/github.com/adhocore/gronx).
2121

2222
## Installation
2323

24+
### As a Go library
25+
2426
```sh
2527
go get -u github.com/adhocore/gronx
2628
```
2729

30+
### Using Bash install script
31+
32+
For installing the `tasker` command-line tool, you can use the bash installation script:
33+
34+
```sh
35+
curl -sS https://raw.githubusercontent.com/adhocore/gronx/refs/heads/main/install.sh | sh
36+
```
37+
38+
For non-interactive installation (useful in CI/CD environments):
39+
40+
```sh
41+
curl -sS https://raw.githubusercontent.com/adhocore/gronx/refs/heads/main/install.sh | sh -s -- --yes
42+
```
43+
44+
The script supports various options:
45+
- `-b, --bin-dir`: Override the installation directory (default: `/usr/local/bin`)
46+
- `-v, --version`: Install a specific version (default: latest)
47+
- `-p, --platform`: Override detected platform
48+
- `-a, --arch`: Override detected architecture
49+
- `-f, -y, --force, --yes`: Skip confirmation prompts
50+
- `-h, --help`: Display help message
51+
52+
Example with custom installation directory:
53+
54+
```sh
55+
curl -sS https://raw.githubusercontent.com/adhocore/gronx/refs/heads/main/install.sh | sh -s -- --bin-dir ~/.local/bin --yes
56+
```
57+
2858
## Usage
2959

3060
```go

0 commit comments

Comments
 (0)