feat: build aarch64 CLI + CLI self-update on all platforms

This commit is contained in:
Helios Agent 2026-03-06 15:06:20 +01:00
parent e15834c179
commit 6224c9a1e0
No known key found for this signature in database
GPG key ID: C8259547CD8309B5
2 changed files with 13 additions and 8 deletions

View file

@ -782,16 +782,13 @@ fn main() {
// Self-update CLI if needed
// (relay_commit is the "canonical" latest — if we differ from it, we're outdated)
// Skip on non-x86_64 Linux (e.g. ARM/Pi) — CI only builds x86_64 Linux binaries
#[cfg(all(not(target_os = "windows"), not(target_arch = "x86_64")))]
if cli_commit != relay_commit {
println!(" → Skipping CLI update (non-x86_64, update manually)");
}
#[cfg(any(target_os = "windows", target_arch = "x86_64"))]
if cli_commit != relay_commit {
println!(" → Updating CLI...");
#[cfg(target_os = "windows")]
let url = "https://agent-helios.me/downloads/helios-remote/helios-remote-cli-windows.exe";
#[cfg(not(target_os = "windows"))]
#[cfg(all(not(target_os = "windows"), target_arch = "aarch64"))]
let url = "https://agent-helios.me/downloads/helios-remote/helios-remote-cli-linux-aarch64";
#[cfg(all(not(target_os = "windows"), not(target_arch = "aarch64")))]
let url = "https://agent-helios.me/downloads/helios-remote/helios-remote-cli-linux";
let bytes = match reqwest::blocking::get(url) {