Skip to content

Use Claude Code with your ChatGPT, Kimi, Cursor or Grok subscription via a local Anthropic-compatible proxy

Rust

release: zip windows artifacts

Raine Virtab0bf574a1714
diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml
index fd49d10..ec5b49d 100644
--- a/.github/workflows/release.yml
+++ b/.github/workflows/release.yml
@@ -20,21 +20,27 @@ jobs:
- target: bun-darwin-arm64
platform: darwin-arm64
ext: ""
+ archive: tar.gz
- target: bun-darwin-x64
platform: darwin-amd64
ext: ""
+ archive: tar.gz
- target: bun-linux-x64
platform: linux-amd64
ext: ""
+ archive: tar.gz
- target: bun-linux-arm64
platform: linux-arm64
ext: ""
+ archive: tar.gz
- target: bun-windows-x64
platform: windows-amd64
ext: .exe
+ archive: zip
- target: bun-windows-arm64
platform: windows-arm64
ext: .exe
+ archive: zip
steps:
- uses: actions/checkout@v5
- uses: oven-sh/setup-bun@v2
@@ -54,14 +60,18 @@ jobs:
--outfile dist/${BIN_NAME}${{ matrix.ext }}
- name: Package
run: |
- archive="${BIN_NAME}-${{ matrix.platform }}.tar.gz"
- tar -C dist -czf "$archive" ${BIN_NAME}${{ matrix.ext }}
+ archive="${BIN_NAME}-${{ matrix.platform }}.${{ matrix.archive }}"
+ if [[ "${{ matrix.archive }}" == "zip" ]]; then
+ (cd dist && zip "../$archive" ${BIN_NAME}${{ matrix.ext }})
+ else
+ tar -C dist -czf "$archive" ${BIN_NAME}${{ matrix.ext }}
+ fi
shasum -a 256 "$archive" > "${BIN_NAME}-${{ matrix.platform }}.sha256"
- uses: actions/upload-artifact@v5
with:
name: ${{ matrix.platform }}
path: |
- ${{ env.BIN_NAME }}-${{ matrix.platform }}.tar.gz
+ ${{ env.BIN_NAME }}-${{ matrix.platform }}.${{ matrix.archive }}
${{ env.BIN_NAME }}-${{ matrix.platform }}.sha256
smoke-windows:
@@ -73,7 +83,7 @@ jobs:
name: windows-amd64
- shell: pwsh
run: |
- tar -xzf claude-code-proxy-windows-amd64.tar.gz
+ Expand-Archive claude-code-proxy-windows-amd64.zip -DestinationPath .
.\claude-code-proxy.exe --version
release:
@@ -91,6 +101,7 @@ jobs:
generate_release_notes: true
files: |
*.tar.gz
+ *.zip
*.sha256
update-tap:
diff --git a/README.md b/README.md
index d83cb24..904e298 100644
--- a/README.md
+++ b/README.md
@@ -39,8 +39,8 @@ curl -fsSL https://raw.githubusercontent.com/raine/claude-code-proxy/main/script
**Manual:** download a prebuilt binary for your platform from the
[releases page](https://github.com/raine/claude-code-proxy/releases). Windows
-artifacts are published as `claude-code-proxy-windows-amd64.tar.gz` and
-`claude-code-proxy-windows-arm64.tar.gz`; extract the `.exe` somewhere on your
+artifacts are published as `claude-code-proxy-windows-amd64.zip` and
+`claude-code-proxy-windows-arm64.zip`; extract the `.exe` somewhere on your
`PATH`.
### 2. Pick a provider and authenticate