mirror of
https://github.com/Universal-Debloater-Alliance/universal-android-debloater-next-generation.git
synced 2026-08-24 06:24:19 +02:00
Merge pull request #371 from Universal-Debloater-Alliance/bug/uad_list
bug(uad-list): json parsing error
This commit is contained in:
commit
7750a19abd
3 changed files with 72 additions and 138 deletions
|
|
@ -150,11 +150,17 @@ pub async fn download_update_to_temp_file(
|
|||
}
|
||||
|
||||
if let Err(e) = rename(¤t_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, ¤t_bin_path) {
|
||||
error!("[SelfUpdate] Couldn't rename binary path: {}", e);
|
||||
error!(
|
||||
"[SelfUpdate] Couldn't rename from downloaded to current binary path: {}",
|
||||
e
|
||||
);
|
||||
return Err(());
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue