chore: fix Task 1 scaffold quality issues

This commit is contained in:
KimiSwitch Dev
2026-07-06 17:26:04 +08:00
parent dd53e4fb20
commit a81efe4317
8 changed files with 36 additions and 9 deletions
+4
View File
@@ -20,6 +20,10 @@ thiserror = "1.0"
chrono = "0.4"
anyhow = "1.0"
[lib]
name = "kimiswitch_lib"
crate-type = ["staticlib", "cdylib", "rlib"]
[features]
default = ["custom-protocol"]
custom-protocol = ["tauri/custom-protocol"]
+6
View File
@@ -0,0 +1,6 @@
pub fn run() {
tauri::Builder::default()
.plugin(tauri_plugin_shell::init())
.run(tauri::generate_context!())
.expect("error while running tauri application");
}
+2 -8
View File
@@ -21,17 +21,11 @@
}
],
"security": {
"csp": null
"csp": "default-src 'self'; script-src 'self'; style-src 'self' 'unsafe-inline'; img-src 'self' data:;"
}
},
"bundle": {
"active": true,
"targets": ["msi"],
"icon": [
"icons/32x32.png",
"icons/128x128.png",
"icons/128x128@2x.png",
"icons/icon.ico"
]
"targets": ["msi"]
}
}