Skip to content

Commit fe9077a

Browse files
ci: directly upload unzipped executables to release
Co-authored-by: Cursor <cursoragent@cursor.com>
1 parent 76dafa3 commit fe9077a

2 files changed

Lines changed: 13 additions & 4 deletions

File tree

.github/workflows/release.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,12 @@ jobs:
4242
name: ${{ matrix.asset_name }}
4343
path: target/release/${{ matrix.artifact_name }}
4444

45+
- name: Prepare Release Asset
46+
shell: bash
47+
run: cp target/release/${{ matrix.artifact_name }} ${{ matrix.asset_name }}
48+
4549
- name: Upload to Release
4650
if: startsWith(github.ref, 'refs/tags/')
4751
uses: softprops/action-gh-release@v2
4852
with:
49-
files: target/release/${{ matrix.artifact_name }}
53+
files: ${{ matrix.asset_name }}

README.md

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,13 +23,18 @@ Instant codebase insights in your terminal — fast, local, zero telemetry. Code
2323
Download the standalone binary from the [Releases page](https://github.com/HenryLok0/CodeState/releases). No Python installation required!
2424

2525
```bash
26-
# Linux / macOS
27-
curl -L https://github.com/HenryLok0/CodeState/releases/latest/download/codestate -o codestate
26+
# Linux
27+
curl -L https://github.com/HenryLok0/CodeState/releases/latest/download/codestate-linux-amd64 -o codestate
28+
chmod +x codestate
29+
./codestate
30+
31+
# macOS
32+
curl -L https://github.com/HenryLok0/CodeState/releases/latest/download/codestate-darwin-amd64 -o codestate
2833
chmod +x codestate
2934
./codestate
3035

3136
# Windows (PowerShell)
32-
Invoke-WebRequest -Uri "https://github.com/HenryLok0/CodeState/releases/latest/download/codestate.exe" -OutFile "codestate.exe"
37+
Invoke-WebRequest -Uri "https://github.com/HenryLok0/CodeState/releases/latest/download/codestate-windows-amd64.exe" -OutFile "codestate.exe"
3338
.\codestate.exe
3439
```
3540

0 commit comments

Comments
 (0)