From b9d2ac18034d427ed3116e57d0351ed954116134 Mon Sep 17 00:00:00 2001 From: Reddiepoint <31847741+Reddiepoint@users.noreply.github.com> Date: Thu, 22 Feb 2024 10:15:11 +0800 Subject: [PATCH] Fix self_update target for different platforms --- Cargo.toml | 2 +- src/modules/help.rs | 6 +++++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 53622b2..e1110a5 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "MultiUp-Direct" -version = "3.2.0-beta.5" +version = "3.2.0" authors = ["Redpoint"] edition = "2021" diff --git a/src/modules/help.rs b/src/modules/help.rs index 0369ab5..a1e4f36 100644 --- a/src/modules/help.rs +++ b/src/modules/help.rs @@ -243,7 +243,11 @@ impl HelpUI { self_update::backends::github::Update::configure() .repo_owner("Reddiepoint") .repo_name("MultiUp-Direct") - .target("") + .target(match std::env::consts::OS { + "linux" => "amd64", + "macos" => "darwin", + _ => "" + }) .bin_name("MultiUp-Direct") .show_download_progress(false) .show_output(false)