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

* Migrate dirs-next to dirs for updater

* Add change file

* dirs_next -> dirs
pull/1508/head
Tony 11 months ago committed by GitHub
parent 6dedb3fa6d
commit acce342fcc
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -0,0 +1,5 @@
---
"updater": patch
---
Switch from `dirs_next` to `dirs` as `dirs_next` is now unmaintained while `dirs` is

2
Cargo.lock generated

@ -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",

@ -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 }

@ -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())),
];

Loading…
Cancel
Save