debug: enable DevTools in release builds
All checks were successful
Build & Sign Wraith / Build Windows + Sign (push) Successful in 2m44s

Added devtools Cargo feature, auto-open DevTools on startup
so we can see frontend console errors on Windows.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
Vantz Stockwell 2026-03-18 03:23:59 -04:00
parent ee857474e3
commit 0cdc865483
3 changed files with 11 additions and 2 deletions

View File

@ -11,7 +11,7 @@ crate-type = ["lib", "cdylib", "staticlib"]
tauri-build = { version = "2", features = [] } tauri-build = { version = "2", features = [] }
[dependencies] [dependencies]
tauri = { version = "2", features = [] } tauri = { version = "2", features = ["devtools"] }
tauri-plugin-shell = "2" tauri-plugin-shell = "2"
tauri-plugin-updater = "2" tauri-plugin-updater = "2"
serde = { version = "1", features = ["derive"] } serde = { version = "1", features = ["derive"] }

View File

@ -151,6 +151,14 @@ pub fn run() {
tauri::Builder::default() tauri::Builder::default()
.plugin(tauri_plugin_shell::init()) .plugin(tauri_plugin_shell::init())
.manage(app_state) .manage(app_state)
.setup(|app| {
// Open DevTools in release builds for debugging
use tauri::Manager;
if let Some(window) = app.get_webview_window("main") {
window.open_devtools();
}
Ok(())
})
.invoke_handler(tauri::generate_handler![ .invoke_handler(tauri::generate_handler![
commands::vault::is_first_run, commands::vault::is_first_run,
commands::vault::create_vault, commands::vault::create_vault,

View File

@ -22,7 +22,8 @@
], ],
"security": { "security": {
"csp": null "csp": null
} },
"withGlobalTauri": true
}, },
"bundle": { "bundle": {
"active": true, "active": true,