cliproxyapi-installer icon indicating copy to clipboard operation
cliproxyapi-installer copied to clipboard

fix: correct ARM64 architecture naming to match release assets

Open ledhcg opened this issue 7 months ago • 0 comments

Summary

  • Fix detect_linux_arch() returning linux_arm64 instead of linux_aarch64 for ARM64 systems
  • CLIProxyAPI release assets use linux_aarch64 naming (e.g. CLIProxyAPI_6.10.6_linux_aarch64.tar.gz), but the installer generated linux_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 install on an ARM64 Linux server and verify it downloads and installs correctly
  • [ ] Run bash cliproxyapi-installer install on an AMD64 Linux server and verify it still works (no regression)
  • [ ] Run bash cliproxyapi-installer upgrade to verify upgrade path works on ARM64

ledhcg avatar May 04 '26 17:05 ledhcg