🐛 fix: correct asset name and bump version to 0.5.1
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.
This commit is contained in:
parent
e883835ae3
commit
67979c88dd
2
Cargo.lock
generated
2
Cargo.lock
generated
@ -864,7 +864,7 @@ dependencies = [
|
|||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "tmuxido"
|
name = "tmuxido"
|
||||||
version = "0.5.0"
|
version = "0.5.1"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"anyhow",
|
"anyhow",
|
||||||
"clap",
|
"clap",
|
||||||
|
|||||||
@ -1,6 +1,6 @@
|
|||||||
[package]
|
[package]
|
||||||
name = "tmuxido"
|
name = "tmuxido"
|
||||||
version = "0.5.0"
|
version = "0.5.1"
|
||||||
edition = "2024"
|
edition = "2024"
|
||||||
|
|
||||||
[dev-dependencies]
|
[dev-dependencies]
|
||||||
|
|||||||
@ -20,8 +20,8 @@ pub fn current_version() -> &'static str {
|
|||||||
fn detect_arch() -> Result<&'static str> {
|
fn detect_arch() -> Result<&'static str> {
|
||||||
let arch = std::env::consts::ARCH;
|
let arch = std::env::consts::ARCH;
|
||||||
match arch {
|
match arch {
|
||||||
"x86_64" => Ok("x86_64-linux"),
|
"x86_64" => Ok("tmuxido-x86_64-linux"),
|
||||||
"aarch64" => Ok("aarch64-linux"),
|
"aarch64" => Ok("tmuxido-aarch64-linux"),
|
||||||
_ => Err(anyhow::anyhow!("Unsupported architecture: {}", arch)),
|
_ => Err(anyhow::anyhow!("Unsupported architecture: {}", arch)),
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user