fix: skip CLI self-update on non-x86_64 (ARM/Pi)

This commit is contained in:
Helios Agent 2026-03-06 14:03:29 +01:00
parent b05517eadf
commit 33e1e4d550
No known key found for this signature in database
GPG key ID: C8259547CD8309B5

View file

@ -781,6 +781,12 @@ fn main() {
// Self-update CLI if needed // Self-update CLI if needed
// (relay_commit is the "canonical" latest — if we differ from it, we're outdated) // (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 { if cli_commit != relay_commit {
println!(" → Updating CLI..."); println!(" → Updating CLI...");
#[cfg(target_os = "windows")] #[cfg(target_os = "windows")]