feat: build aarch64 CLI + CLI self-update on all platforms
This commit is contained in:
parent
e15834c179
commit
6224c9a1e0
2 changed files with 13 additions and 8 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue