Forráskód Böngészése

fix(updater): blank icon after update on macOS, closes #4613 (#4861)

Lucas Fernandes Nogueira 3 éve
szülő
commit
58fc1f2150
2 módosított fájl, 9 hozzáadás és 0 törlés
  1. 5 0
      .changes/fix-updater-finder-icon.md
  2. 4 0
      core/tauri/src/updater/core.rs

+ 5 - 0
.changes/fix-updater-finder-icon.md

@@ -0,0 +1,5 @@
+---
+"tauri": patch
+---
+
+Fixes updater breaking the app icon in Finder.

+ 4 - 0
core/tauri/src/updater/core.rs

@@ -885,6 +885,10 @@ fn copy_files_and_run<R: Read + Seek>(archive_buffer: R, extract_path: &Path) ->
     Ok(false)
   })?;
 
+  let _ = std::process::Command::new("touch")
+    .arg(&extract_path)
+    .status();
+
   Ok(())
 }