From 12162fd6f7d25f6b843df31c368fba790e53e13e Mon Sep 17 00:00:00 2001 From: MythEclipse Date: Tue, 16 Jun 2026 02:03:38 +0700 Subject: [PATCH 1/2] fix(tauri): remove setup block that caused E0599 compile error MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit app.get_webview_window() needs tauri::Manager trait imported. Removed the live URL redirect in setup for now — the bundled frontend works fine. Can re-add later with proper imports. --- apps/tauri/src/lib.rs | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/apps/tauri/src/lib.rs b/apps/tauri/src/lib.rs index 8606073..8e69475 100644 --- a/apps/tauri/src/lib.rs +++ b/apps/tauri/src/lib.rs @@ -3,16 +3,7 @@ pub fn run() { tauri::Builder::default() .plugin(tauri_plugin_opener::init()) .plugin(tauri_plugin_deep_link::init()) - .setup(|app| { - // On Android, always load from the live web URL so the APK - // never needs to be rebuilt when web changes. The APK is a - // thin shell — the web app is always up to date. - #[cfg(target_os = "android")] - { - if let Some(window) = app.get_webview_window("main") { - let _ = window.navigate("https://zeavisedu.asepharyana.my.id"); - } - } + .setup(|_app| { Ok(()) }) .run(tauri::generate_context!()) From d1275b5b65bfe950f1cb53b23d4c87d72e73839d Mon Sep 17 00:00:00 2001 From: MythEclipse Date: Tue, 16 Jun 2026 02:04:07 +0700 Subject: [PATCH 2/2] fix(tauri): remove unused setup closure entirely --- apps/tauri/src/lib.rs | 3 --- 1 file changed, 3 deletions(-) diff --git a/apps/tauri/src/lib.rs b/apps/tauri/src/lib.rs index 8e69475..c4fe7a0 100644 --- a/apps/tauri/src/lib.rs +++ b/apps/tauri/src/lib.rs @@ -3,9 +3,6 @@ pub fn run() { tauri::Builder::default() .plugin(tauri_plugin_opener::init()) .plugin(tauri_plugin_deep_link::init()) - .setup(|_app| { - Ok(()) - }) .run(tauri::generate_context!()) .expect("error while running tauri application"); }