Update impl

This commit is contained in:
2026-04-13 18:46:18 +08:00
parent cdd21f4633
commit a6fce677e8
7 changed files with 93 additions and 56 deletions

26
src-tauri/Cargo.lock generated
View File

@@ -1837,7 +1837,6 @@ dependencies = [
"serde_json",
"tauri",
"tauri-build",
"tauri-plugin-fs",
"tauri-plugin-opener",
]
@@ -3469,7 +3468,6 @@ checksum = "e3e0adef53c21f888deb4fa59fc59f7eb17404926ee8a6f59f5df0fd7f9f3272"
dependencies = [
"bitflags 2.11.0",
"block2",
"libc",
"objc2",
"objc2-core-foundation",
]
@@ -5202,30 +5200,6 @@ dependencies = [
"walkdir",
]
[[package]]
name = "tauri-plugin-fs"
version = "2.5.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "36e1ec28b79f3d0683f4507e1615c36292c0ea6716668770d4396b9b39871ed8"
dependencies = [
"anyhow",
"dunce",
"glob",
"log",
"objc2-foundation",
"percent-encoding",
"schemars 0.8.22",
"serde",
"serde_json",
"serde_repr",
"tauri",
"tauri-plugin",
"tauri-utils",
"thiserror 2.0.18",
"toml 0.9.12+spec-1.1.0",
"url",
]
[[package]]
name = "tauri-plugin-opener"
version = "2.5.3"

View File

@@ -23,9 +23,8 @@ encoding = "0.2"
image = { version = "0.25", default-features = false, features = ["png", "jpeg", "gif", "bmp", "tiff", "ico", "webp"] }
lazy_static = "1.5"
msg_tool = { path = "../../MsgTool" }
tauri = { version = "2", features = [] }
tauri = { version = "2", features = ["devtools"] }
tauri-plugin-opener = "2"
serde = { version = "1", features = ["derive"] }
serde_json = "1"
tauri-plugin-fs = "2.5.0"

View File

@@ -5,20 +5,6 @@
"windows": ["main"],
"permissions": [
"core:default",
"opener:default",
"fs:default",
{
"identifier": "fs:allow-read",
"allow": [{ "path": "**" }]
},
{
"identifier": "fs:allow-write",
"allow": [{ "path": "**" }]
},
{
"identifier": "fs:allow-mkdir",
"allow": [{ "path": "**" }]
},
"fs:allow-exists"
"opener:default"
]
}

View File

@@ -4,7 +4,6 @@ mod backend;
pub fn run() {
tauri::Builder::default()
.plugin(tauri_plugin_opener::init())
.plugin(tauri_plugin_fs::init())
.invoke_handler(tauri::generate_handler![
backend::get_start_directory,
backend::get_xp3_supported_games,