https://github.com/dhth/binhelpers
https://github.com/dhth/binhelpers
Last synced: 9 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/dhth/binhelpers
- Owner: dhth
- Created: 2024-07-29T16:33:27.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2024-07-29T17:00:43.000Z (almost 2 years ago)
- Last Synced: 2025-04-05T00:29:59.439Z (over 1 year ago)
- Language: Shell
- Size: 1.95 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# binhelpers
This repo contains helper scripts for binaries released by me.
## Downloading and validating the integrity of binaries
Say, you want to download the binary for version `0.4.3` [omm][1] for `linux`.
```bash
./getbin.sh omm 0.4.3 linux amd64
```
```text
binary_name: omm_0.4.3_linux_amd64
cosign_pub_file: cosign.pub
checksum_file: omm_0.4.3_checksums.txt
checksum_sig_file: omm_0.4.3_checksums.txt.sig
binary_file: omm_0.4.3_linux_amd64.tar.gz
---
👉 Downloading assets
---
👉 Validating signature on checksums.txt
cosign verify-blob --key /var/folders/pj/sfbmtnv51p54jwwjjv79gjp00000gq/T/tmp.m9GqoFFo9Q/cosign.pub --signature /var/folders/pj/sfbmtnv51p54jwwjjv79gjp00000gq/T/tmp.m9GqoFFo9Q/omm_0.4.3_checksums.txt.sig /var/folders/pj/sfbmtnv51p54jwwjjv79gjp00000gq/T/tmp.m9GqoFFo9Q/omm_0.4.3_checksums.txt
Verified OK
Checksum file signature verification succeeded!
---
👉 Validating checksum of binary
/var/folders/pj/sfbmtnv51p54jwwjjv79gjp00000gq/T/tmp.m9GqoFFo9Q/omm_0.4.3_linux_amd64.tar.gz: OK
Binary checksum verification succeeded!
---
👉 Downloaded binary: ./omm
```
[1]: https://github.com/dhth/omm