修改架构,移动端优先。
save
This commit is contained in:
@@ -0,0 +1,8 @@
|
||||
// 跨平台入口: 桌面从这里走, Android 走 mobile_entry_point 宏
|
||||
#[cfg_attr(mobile, tauri::mobile_entry_point)]
|
||||
pub fn run() {
|
||||
tauri::Builder::default()
|
||||
.setup(|_app| Ok(()))
|
||||
.run(tauri::generate_context!())
|
||||
.expect("error while running iBoard");
|
||||
}
|
||||
@@ -0,0 +1,7 @@
|
||||
// Windows / Linux / macOS 桌面端入口
|
||||
// Android 不走这里, 走 .lib crate
|
||||
#![cfg_attr(not(debug_assertions), windows_subsystem = "windows")]
|
||||
|
||||
fn main() {
|
||||
iboard_lib::run();
|
||||
}
|
||||
Reference in New Issue
Block a user