Skip to content

Commit d5622a1

Browse files
Update README with release badge and fix download instructions
- Add release version badge - Fix binary download URLs to work with versioned archives - Add Linux arm64 download option
1 parent 9278997 commit d5622a1

1 file changed

Lines changed: 9 additions & 3 deletions

File tree

README.md

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
# Distill
22

33
[![CI](https://github.com/Siddhant-K-code/distill/actions/workflows/ci.yml/badge.svg)](https://github.com/Siddhant-K-code/distill/actions/workflows/ci.yml)
4+
[![Release](https://img.shields.io/github/v/release/Siddhant-K-code/distill)](https://github.com/Siddhant-K-code/distill/releases/latest)
45
[![Go Report Card](https://goreportcard.com/badge/github.com/Siddhant-K-code/distill)](https://goreportcard.com/report/github.com/Siddhant-K-code/distill)
56
[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)
67

@@ -42,18 +43,23 @@ Download from [GitHub Releases](https://github.com/Siddhant-K-code/distill/relea
4243

4344
```bash
4445
# macOS (Apple Silicon)
45-
curl -L https://github.com/Siddhant-K-code/distill/releases/latest/download/distill_Darwin_arm64.tar.gz | tar xz
46+
curl -sL $(curl -s https://api.github.com/repos/Siddhant-K-code/distill/releases/latest | grep "browser_download_url.*darwin_arm64.tar.gz" | cut -d '"' -f 4) | tar xz
4647

4748
# macOS (Intel)
48-
curl -L https://github.com/Siddhant-K-code/distill/releases/latest/download/distill_Darwin_amd64.tar.gz | tar xz
49+
curl -sL $(curl -s https://api.github.com/repos/Siddhant-K-code/distill/releases/latest | grep "browser_download_url.*darwin_amd64.tar.gz" | cut -d '"' -f 4) | tar xz
4950

5051
# Linux (amd64)
51-
curl -L https://github.com/Siddhant-K-code/distill/releases/latest/download/distill_Linux_amd64.tar.gz | tar xz
52+
curl -sL $(curl -s https://api.github.com/repos/Siddhant-K-code/distill/releases/latest | grep "browser_download_url.*linux_amd64.tar.gz" | cut -d '"' -f 4) | tar xz
53+
54+
# Linux (arm64)
55+
curl -sL $(curl -s https://api.github.com/repos/Siddhant-K-code/distill/releases/latest | grep "browser_download_url.*linux_arm64.tar.gz" | cut -d '"' -f 4) | tar xz
5256

5357
# Move to PATH
5458
sudo mv distill /usr/local/bin/
5559
```
5660

61+
Or download directly from the [releases page](https://github.com/Siddhant-K-code/distill/releases/latest).
62+
5763
### Go Install
5864

5965
```bash

0 commit comments

Comments
 (0)