feat: update to tauri beta, add permissions (#862)

Co-authored-by: Lucas Nogueira <lucas@tauri.app>
Co-authored-by: Lucas Nogueira <lucas@crabnebula.dev>
This commit is contained in:
Tillmann
2024-02-04 03:14:41 +09:00
committed by GitHub
parent 506ce4835b
commit d198c01486
387 changed files with 21883 additions and 943 deletions
@@ -9,6 +9,6 @@
"author": "",
"license": "MIT",
"devDependencies": {
"@tauri-apps/cli": "2.0.0-alpha.20"
"@tauri-apps/cli": "2.0.0-beta.0"
}
}
@@ -2,3 +2,5 @@
# will have compiled files and executables
/target/
WixTools
/capabilities/schemas
@@ -29,7 +29,7 @@ impl<R: Runtime> SingleInstanceDBus<R> {
}
fn dbus_id(config: &Config) -> String {
config.tauri.bundle.identifier.replace(['.', '-'], "_")
config.identifier.replace(['.', '-'], "_")
}
pub fn init<R: Runtime>(f: Box<SingleInstanceCallback<R>>) -> TauriPlugin<R> {
@@ -33,7 +33,7 @@ const WMCOPYDATA_SINGLE_INSTANCE_DATA: usize = 1542;
pub fn init<R: Runtime>(f: Box<SingleInstanceCallback<R>>) -> TauriPlugin<R> {
plugin::Builder::new("single-instance")
.setup(|app, _api| {
let id = &app.config().tauri.bundle.identifier;
let id = &app.config().identifier;
let class_name = encode_wide(format!("{id}-sic"));
let window_name = encode_wide(format!("{id}-siw"));