Skip to content

Commit

Permalink
windows self update potential fix
Browse files Browse the repository at this point in the history
  • Loading branch information
UwUDev committed Aug 17, 2024
1 parent 15d836a commit 17ad1c1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions src/updater.rs
Original file line number Diff line number Diff line change
Expand Up @@ -46,10 +46,10 @@ pub fn self_update_balamod(cli_ver: &str) -> LuaResult<()> {
let mut response = client.get(&url).send().unwrap();
let mut file = std::fs::File::create("balamod.tmp").unwrap();
std::io::copy(&mut response, &mut file).unwrap();
std::fs::rename("balamod.tmp", "balamod")?;
std::fs::rename("balamod.tmp", "balamod.exe")?;
drop(file);

let output = std::process::Command::new("balamod")
let output = std::process::Command::new("balamod.exe")
.arg("-u")
.arg("-a")
.output()?;
Expand Down

0 comments on commit 17ad1c1

Please sign in to comment.