Compare commits
2 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
6e4f6b3d61 | ||
|
|
e99e6c8df7 |
1
.github/workflows/release.yaml
vendored
1
.github/workflows/release.yaml
vendored
@@ -27,6 +27,7 @@ jobs:
|
|||||||
args: release --clean
|
args: release --clean
|
||||||
env:
|
env:
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
AUR_KEY: ${{ secrets.AUR_KEY }}
|
||||||
|
|
||||||
release-darwin:
|
release-darwin:
|
||||||
needs: release-linux
|
needs: release-linux
|
||||||
|
|||||||
@@ -25,6 +25,9 @@ archives:
|
|||||||
{{- .Version }}_
|
{{- .Version }}_
|
||||||
{{- .Os }}_
|
{{- .Os }}_
|
||||||
{{- .Arch }}
|
{{- .Arch }}
|
||||||
|
files:
|
||||||
|
- LICENSE
|
||||||
|
- README.md
|
||||||
|
|
||||||
release:
|
release:
|
||||||
github:
|
github:
|
||||||
|
|||||||
@@ -33,6 +33,9 @@ archives:
|
|||||||
{{- .Os }}_
|
{{- .Os }}_
|
||||||
{{- .Arch }}
|
{{- .Arch }}
|
||||||
{{- if .Arm }}v{{ .Arm }}{{ end }}
|
{{- if .Arm }}v{{ .Arm }}{{ end }}
|
||||||
|
files:
|
||||||
|
- LICENSE
|
||||||
|
- README.md
|
||||||
|
|
||||||
checksum:
|
checksum:
|
||||||
name_template: "checksums.txt"
|
name_template: "checksums.txt"
|
||||||
@@ -61,6 +64,27 @@ nfpms:
|
|||||||
- rpm
|
- rpm
|
||||||
- apk
|
- apk
|
||||||
|
|
||||||
|
aurs:
|
||||||
|
- name: snitch-bin
|
||||||
|
homepage: https://github.com/karol-broda/snitch
|
||||||
|
description: a friendlier ss/netstat for humans
|
||||||
|
maintainers:
|
||||||
|
- "Karol Broda <me@karolbroda.com>"
|
||||||
|
license: MIT
|
||||||
|
private_key: "{{ .Env.AUR_KEY }}"
|
||||||
|
git_url: "ssh://aur@aur.archlinux.org/snitch-bin.git"
|
||||||
|
depends:
|
||||||
|
- glibc
|
||||||
|
provides:
|
||||||
|
- snitch
|
||||||
|
conflicts:
|
||||||
|
- snitch
|
||||||
|
package: |-
|
||||||
|
install -Dm755 "./snitch" "${pkgdir}/usr/bin/snitch"
|
||||||
|
install -Dm644 "./LICENSE" "${pkgdir}/usr/share/licenses/snitch/LICENSE"
|
||||||
|
commit_msg_template: "Update to {{ .Tag }}"
|
||||||
|
skip_upload: auto
|
||||||
|
|
||||||
release:
|
release:
|
||||||
github:
|
github:
|
||||||
owner: karol-broda
|
owner: karol-broda
|
||||||
|
|||||||
30
README.md
30
README.md
@@ -28,18 +28,33 @@ nix profile install github:karol-broda/snitch
|
|||||||
# then use: inputs.snitch.packages.${system}.default
|
# then use: inputs.snitch.packages.${system}.default
|
||||||
```
|
```
|
||||||
|
|
||||||
|
### arch linux (aur)
|
||||||
|
|
||||||
|
```bash
|
||||||
|
# with yay
|
||||||
|
yay -S snitch-bin
|
||||||
|
|
||||||
|
# with paru
|
||||||
|
paru -S snitch-bin
|
||||||
|
```
|
||||||
|
|
||||||
### binary
|
### binary
|
||||||
|
|
||||||
download from [releases](https://github.com/karol-broda/snitch/releases):
|
download from [releases](https://github.com/karol-broda/snitch/releases):
|
||||||
|
|
||||||
```bash
|
- **linux:** `snitch_<version>_linux_<arch>.tar.gz` or `.deb`/`.rpm`/`.apk`
|
||||||
# amd64
|
- **macos:** `snitch_<version>_darwin_<arch>.tar.gz`
|
||||||
curl -L https://github.com/karol-broda/snitch/releases/latest/download/snitch_linux_amd64.tar.gz | tar xz
|
|
||||||
sudo mv snitch /usr/local/bin/
|
|
||||||
|
|
||||||
# or install .deb/.rpm/.apk from releases
|
```bash
|
||||||
|
tar xzf snitch_*.tar.gz
|
||||||
|
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
|
||||||
|
> ```
|
||||||
|
|
||||||
## quick start
|
## quick start
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
@@ -174,5 +189,6 @@ theme = "auto"
|
|||||||
|
|
||||||
## requirements
|
## requirements
|
||||||
|
|
||||||
- linux (reads from `/proc/net/*`)
|
- linux or macos
|
||||||
- root or `CAP_NET_ADMIN` for full process info
|
- linux: reads from `/proc/net/*`, root or `CAP_NET_ADMIN` for full process info
|
||||||
|
- macos: uses system APIs, may require sudo for full process info
|
||||||
|
|||||||
Reference in New Issue
Block a user