@@ -19,33 +19,21 @@ Binaries are available for:
1919
2020Download the binary for your platform from the [ release page] ( https://github.com/kitproj/jira-cli/releases ) .
2121
22- #### Linux
22+ #### Linux and macOS
2323
24- ** For Linux (amd64):**
25- ``` bash
26- sudo curl -fsL -o /usr/local/bin/jira https://github.com/kitproj/jira-cli/releases/download/v0.0.15/jira_v0.0.15_linux_amd64
27- sudo chmod +x /usr/local/bin/jira
28- ```
24+ The installation script automatically detects your platform and architecture:
2925
30- ** For Linux (arm64):**
3126``` bash
32- sudo curl -fsL -o /usr/local/bin/jira https://github.com/kitproj/jira-cli/releases/download/v0.0.15/jira_v0.0.15_linux_arm64
27+ VERSION=v0.0.15
28+ PLATFORM=$( uname -s | tr ' [:upper:]' ' [:lower:]' )
29+ ARCH=$( uname -m | sed ' s/x86_64/amd64/' | sed ' s/aarch64/arm64/' )
30+ sudo curl -fsL -o /usr/local/bin/jira https://github.com/kitproj/jira-cli/releases/download/${VERSION} /jira_${VERSION} _${PLATFORM} _${ARCH}
3331sudo chmod +x /usr/local/bin/jira
3432```
3533
36- #### macOS
37-
38- ** For macOS (Apple Silicon/arm64):**
39- ``` bash
40- sudo curl -fsL -o /usr/local/bin/jira https://github.com/kitproj/jira-cli/releases/download/v0.0.15/jira_v0.0.15_darwin_arm64
41- sudo chmod +x /usr/local/bin/jira
42- ```
43-
44- ** For macOS (Intel/amd64):**
45- ``` bash
46- sudo curl -fsL -o /usr/local/bin/jira https://github.com/kitproj/jira-cli/releases/download/v0.0.15/jira_v0.0.15_darwin_amd64
47- sudo chmod +x /usr/local/bin/jira
48- ```
34+ This works for:
35+ - ** Linux** : amd64, arm64
36+ - ** macOS** : amd64 (Intel), arm64 (Apple Silicon)
4937
5038#### Verify Installation
5139
@@ -257,9 +245,10 @@ This automation helps keep your Jira board in sync with your actual development
257245 fi
258246
259247 if [ ! -e ~ /bin/jira ]; then
248+ VERSION=v0.0.15
260249 platform=$( uname -s | tr ' [:upper:]' ' [:lower:]' )
261250 arch=$( uname -m | sed ' s/x86_64/amd64/' | sed ' s/aarch64/arm64/' )
262- curl -fsL -o ~ /bin/jira https://github.com/kitproj/jira-cli/releases/download/v0.0.15/jira_v0.0.15_ ${platform} _${arch}
251+ curl -fsL -o ~ /bin/jira https://github.com/kitproj/jira-cli/releases/download/${VERSION} /jira_ ${VERSION} _ ${platform} _${arch}
263252 mkdir -p ~ /bin
264253 chmod +x ~ /bin/jira
265254 fi
0 commit comments