Skip to content

Commit

Permalink
Fix self_update target for different platforms
Browse files Browse the repository at this point in the history
  • Loading branch information
Reddiepoint committed Feb 22, 2024
1 parent b9e8edb commit b9d2ac1
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "MultiUp-Direct"
version = "3.2.0-beta.5"
version = "3.2.0"
authors = ["Redpoint"]
edition = "2021"

Expand Down
6 changes: 5 additions & 1 deletion src/modules/help.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit b9d2ac1

Please sign in to comment.