feat: upgrade Rust code to full Tauri 2.0 compatibility

- Add tauri-plugin-shell and tauri-plugin-opener dependencies
- Update permissions configuration to support shell and opener operations
- Refactor open_config_folder and open_external commands to use secure plugin APIs
- Remove unsafe direct std::process::Command usage
- Initialize necessary Tauri plugins
- Ensure all external operations comply with Tauri 2.0 security standards
This commit is contained in:
Jason
2025-08-25 20:16:29 +08:00
parent 9f370bf429
commit dac8ebe03b
5 changed files with 789 additions and 82 deletions

View File

@@ -6,6 +6,9 @@
"main"
],
"permissions": [
"core:default"
"core:default",
"shell:allow-open",
"shell:allow-execute",
"opener:default"
]
}
}