Merge pull request #371 from Universal-Debloater-Alliance/bug/uad_list

bug(uad-list): json parsing error
This commit is contained in:
Anonymoussaurus 2024-03-23 12:06:51 +01:00 committed by GitHub
commit 7750a19abd
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 72 additions and 138 deletions

View file

@ -150,11 +150,17 @@ pub async fn download_update_to_temp_file(
}
if let Err(e) = rename(&current_bin_path, &tmp_path) {
error!("[SelfUpdate] Couldn't rename binary path: {}", e);
error!(
"[SelfUpdate] Couldn't rename from current to temporary binary path: {}",
e
);
return Err(());
}
if let Err(e) = rename(&download_path, &current_bin_path) {
error!("[SelfUpdate] Couldn't rename binary path: {}", e);
error!(
"[SelfUpdate] Couldn't rename from downloaded to current binary path: {}",
e
);
return Err(());
}

View file

@ -283,7 +283,7 @@ impl Application for UadGui {
}
#[cfg(feature = "self-update")]
Message::_NewReleaseDownloaded(res) => {
debug!("UAD-ng update has been download!");
debug!("UAD-ng update has been downloaded!");
if let Ok((relaunch_path, cleanup_path)) = res {
// Remove first arg, which is path to binary. We don't use this first