feat: add install script for automated binary installation

This commit is contained in:
Karol Broda
2025-12-20 20:20:44 +01:00
parent 6e4f6b3d61
commit 04aa42a9c9
2 changed files with 123 additions and 0 deletions

View File

@@ -38,6 +38,18 @@ yay -S snitch-bin
paru -S snitch-bin
```
### shell script
```bash
curl -sSL https://raw.githubusercontent.com/karol-broda/snitch/master/install.sh | sh
```
installs to `~/.local/bin` if available, otherwise `/usr/local/bin`. override with:
```bash
curl -sSL https://raw.githubusercontent.com/karol-broda/snitch/master/install.sh | INSTALL_DIR=~/bin sh
```
### binary
download from [releases](https://github.com/karol-broda/snitch/releases):
@@ -51,6 +63,7 @@ sudo mv snitch /usr/local/bin/
```
> **macos:** if blocked with "cannot be opened because the developer cannot be verified", run:
>
> ```bash
> xattr -d com.apple.quarantine /usr/local/bin/snitch
> ```