diff --git a/src/install.rs b/src/install.rs index c21dcf6..c15a404 100644 --- a/src/install.rs +++ b/src/install.rs @@ -170,7 +170,7 @@ pub fn choose_artifact(artifacts: Vec, instance_type: InstanceTy } } Err(anyhow!( - "Couldn't match any asset against for {:#?}", + "Couldn't match any asset against {:#?}", instance_type )) } diff --git a/src/instance.rs b/src/instance.rs index bdb56f2..428efc4 100644 --- a/src/instance.rs +++ b/src/instance.rs @@ -29,7 +29,7 @@ impl InstanceType { Self::MacOS => archive_name.contains("mac") || archive_name.ends_with(".dmg"), Self::Windows => archive_name.contains("win64"), Self::Linux => archive_name.ends_with(".tar.gz"), - Self::AppImage => archive_name.ends_with(".AppImage"), + Self::AppImage => archive_name.contains(".AppImage"), Self::Unknown => false, } }