Skip to content

Commit f18c90c

Browse files
authored
docs: simplify installation instructions with auto-detection variables (#19)
* chore: update README installation instructions to v0.0.13 * docs: simplify installation instructions with auto-detection variables
1 parent 4b8b672 commit f18c90c

1 file changed

Lines changed: 4 additions & 24 deletions

File tree

README.md

Lines changed: 4 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -10,31 +10,11 @@ It's aimed at coding agents with a very simple interface, and is not intended to
1010

1111
Download the binary for your platform from the [release page](https://github.com/kitproj/slack-cli/releases).
1212

13-
### Linux
14-
15-
**AMD64 (x86_64):**
16-
```bash
17-
sudo curl -fsL -o /usr/local/bin/slack https://github.com/kitproj/slack-cli/releases/download/v0.0.13/slack_v0.0.13_linux_amd64
18-
sudo chmod +x /usr/local/bin/slack
19-
```
20-
21-
**ARM64:**
22-
```bash
23-
sudo curl -fsL -o /usr/local/bin/slack https://github.com/kitproj/slack-cli/releases/download/v0.0.13/slack_v0.0.13_linux_arm64
24-
sudo chmod +x /usr/local/bin/slack
25-
```
26-
27-
### MacOS
28-
29-
**Intel (AMD64):**
30-
```bash
31-
sudo curl -fsL -o /usr/local/bin/slack https://github.com/kitproj/slack-cli/releases/download/v0.0.13/slack_v0.0.13_darwin_amd64
32-
sudo chmod +x /usr/local/bin/slack
33-
```
34-
35-
**Apple Silicon (ARM64):**
3613
```bash
37-
sudo curl -fsL -o /usr/local/bin/slack https://github.com/kitproj/slack-cli/releases/download/v0.0.13/slack_v0.0.13_darwin_arm64
14+
VERSION=v0.0.13
15+
PLATFORM=$(uname -s | tr '[:upper:]' '[:lower:]')
16+
ARCH=$(uname -m | sed 's/x86_64/amd64/' | sed 's/aarch64/arm64/')
17+
sudo curl -fsL -o /usr/local/bin/slack https://github.com/kitproj/slack-cli/releases/download/${VERSION}/slack_${VERSION}_${PLATFORM}_${ARCH}
3818
sudo chmod +x /usr/local/bin/slack
3919
```
4020

0 commit comments

Comments
 (0)