cliproxyapi-installer
cliproxyapi-installer copied to clipboard
fix: correct ARM64 architecture naming to match release assets
Summary
- Fix
detect_linux_arch()returninglinux_arm64instead oflinux_aarch64for ARM64 systems - CLIProxyAPI release assets use
linux_aarch64naming (e.g.CLIProxyAPI_6.10.6_linux_aarch64.tar.gz), but the installer generatedlinux_arm64, causing the download URL grep to fail - Update help text to reflect correct architecture name
Bug Details
On ARM64 Linux servers, running the installer would fail with:
[ERROR] Failed to find download URL for CLIProxyAPI_X.Y.Z_linux_arm64.tar.gz
Root cause: The detect_linux_arch() function outputs linux_arm64, but the actual release asset filename uses linux_aarch64. The extract_release_info() function constructs the expected filename using the arch string, then greps for a matching browser_download_url — which never matches.
Before:
arm64|aarch64) → "linux_arm64" → looks for CLIProxyAPI_*_linux_arm64.tar.gz → NOT FOUND
After:
arm64|aarch64) → "linux_aarch64" → looks for CLIProxyAPI_*_linux_aarch64.tar.gz → FOUND ✓
Test plan
- [ ] Run
bash cliproxyapi-installer installon an ARM64 Linux server and verify it downloads and installs correctly - [ ] Run
bash cliproxyapi-installer installon an AMD64 Linux server and verify it still works (no regression) - [ ] Run
bash cliproxyapi-installer upgradeto verify upgrade path works on ARM64