chore(tauri): 移除 npc 内网穿透客户端逻辑
- lib.rs:删除 setup_npc 后台线程启动与等待 - server.rs:删除 setup_npc 函数及 Cursor 导入 - Cargo.toml:移除 zip 依赖 - public/npc.zip:删除嵌入资源
This commit is contained in:
@@ -3,18 +3,8 @@ mod models;
|
||||
mod server;
|
||||
mod storage;
|
||||
|
||||
use std::time::Duration;
|
||||
|
||||
#[cfg_attr(mobile, tauri::mobile_entry_point)]
|
||||
pub fn run() {
|
||||
// 在后台线程启动 npc 内网穿透客户端
|
||||
std::thread::spawn(|| {
|
||||
server::setup_npc();
|
||||
});
|
||||
|
||||
// 等待内网穿透就绪(可选,不阻塞)
|
||||
std::thread::sleep(Duration::from_millis(200));
|
||||
|
||||
tauri::Builder::default()
|
||||
.plugin(tauri_plugin_opener::init())
|
||||
.plugin(tauri_plugin_autostart::init(
|
||||
|
||||
Reference in New Issue
Block a user