chore(deps): migrate dirs-next to dirs for updater plugin (#1506)

* Migrate dirs-next to dirs for updater

* Add change file

* dirs_next -> dirs
This commit is contained in:
Tony
2024-07-01 16:41:46 +08:00
committed by GitHub
parent 6dedb3fa6d
commit acce342fcc
4 changed files with 8 additions and 3 deletions
+5
View File
@@ -0,0 +1,5 @@
---
"updater": patch
---
Switch from `dirs_next` to `dirs` as `dirs_next` is now unmaintained while `dirs` is
Generated
+1 -1
View File
@@ -6758,7 +6758,7 @@ name = "tauri-plugin-updater"
version = "2.0.0-beta.8"
dependencies = [
"base64 0.22.1",
"dirs-next",
"dirs 5.0.1",
"flate2",
"futures-util",
"http",
+1 -1
View File
@@ -38,7 +38,7 @@ zip = { version = "2", default-features = false, optional = true }
windows-sys = { version = "0.52.0", features = [ "Win32_Foundation", "Win32_UI_WindowsAndMessaging" ] }
[target."cfg(target_os = \"linux\")".dependencies]
dirs-next = "2"
dirs = "5"
tar = { version = "0.4", optional = true }
flate2 = { version = "1", optional = true }
+1 -1
View File
@@ -733,7 +733,7 @@ impl Update {
let tmp_dir_locations = vec![
Box::new(|| Some(std::env::temp_dir())) as Box<dyn FnOnce() -> Option<PathBuf>>,
Box::new(dirs_next::cache_dir),
Box::new(dirs::cache_dir),
Box::new(|| Some(self.extract_path.parent().unwrap().to_path_buf())),
];