From 67979c88dd56556f066d1c969f477f269f4137ee Mon Sep 17 00:00:00 2001 From: cinco euzebio Date: Sun, 1 Mar 2026 03:31:10 -0300 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20fix:=20correct=20asset=20name=20?= =?UTF-8?q?and=20bump=20version=20to=200.5.1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit detect_arch was returning "x86_64-linux" but CI uploads assets as "tmuxido-x86_64-linux", causing 404 on self-update. Also bumps Cargo.toml to 0.5.1 which was missing from the hotfix tag. --- Cargo.lock | 2 +- Cargo.toml | 2 +- src/self_update.rs | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index eda5530..fb8ca1a 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -864,7 +864,7 @@ dependencies = [ [[package]] name = "tmuxido" -version = "0.5.0" +version = "0.5.1" dependencies = [ "anyhow", "clap", diff --git a/Cargo.toml b/Cargo.toml index cd38ce4..34b1d7f 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "tmuxido" -version = "0.5.0" +version = "0.5.1" edition = "2024" [dev-dependencies] diff --git a/src/self_update.rs b/src/self_update.rs index a9bd1ab..21156af 100644 --- a/src/self_update.rs +++ b/src/self_update.rs @@ -20,8 +20,8 @@ pub fn current_version() -> &'static str { fn detect_arch() -> Result<&'static str> { let arch = std::env::consts::ARCH; match arch { - "x86_64" => Ok("x86_64-linux"), - "aarch64" => Ok("aarch64-linux"), + "x86_64" => Ok("tmuxido-x86_64-linux"), + "aarch64" => Ok("tmuxido-aarch64-linux"), _ => Err(anyhow::anyhow!("Unsupported architecture: {}", arch)), } }