mirror of
https://github.com/dexoron/dcr.git
synced 2026-10-21 16:19:37 +00:00
Fix single match in updater
This commit is contained in:
@@ -126,11 +126,8 @@ fn download_asset(client: &Client, url: &str) -> Result<Vec<u8>, String> {
|
|||||||
fn asset_candidates(target: &str) -> Vec<String> {
|
fn asset_candidates(target: &str) -> Vec<String> {
|
||||||
let mut names = vec![format!("dcr-{target}")];
|
let mut names = vec![format!("dcr-{target}")];
|
||||||
|
|
||||||
match target {
|
if target == "x86_64-pc-windows-msvc" {
|
||||||
"x86_64-pc-windows-msvc" => {
|
names.push("dcr-x86_64-pc-windows-msvc.exe".to_string());
|
||||||
names.push("dcr-x86_64-pc-windows-msvc.exe".to_string());
|
|
||||||
}
|
|
||||||
_ => {}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
names
|
names
|
||||||
|
|||||||
Reference in New Issue
Block a user