diff --git a/.idea/compiler.xml b/.idea/compiler.xml
new file mode 100644
index 0000000..8ca546d
--- /dev/null
+++ b/.idea/compiler.xml
@@ -0,0 +1,6 @@
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/gametools.iml b/.idea/gametools.iml
index 24643cc..183c19e 100644
--- a/.idea/gametools.iml
+++ b/.idea/gametools.iml
@@ -2,9 +2,11 @@
+
+
diff --git a/src-tauri/config.json b/src-tauri/config.json
deleted file mode 100644
index 1c7ed9e..0000000
--- a/src-tauri/config.json
+++ /dev/null
@@ -1,8 +0,0 @@
-{
- "game_name": "逃离鸭科夫",
- "archive_name": "game_files.zip",
- "executable_path": "bin/game_launcher.exe",
- "default_install_dir_name": "My Awesome Game",
- "shortcut_name": "启动 My Awesome Game",
- "shortcut_icon_path": "assets/game_icon.ico"
-}
\ No newline at end of file
diff --git a/src-tauri/game.zip b/src-tauri/game.zip
deleted file mode 100644
index e51429a..0000000
Binary files a/src-tauri/game.zip and /dev/null differ
diff --git a/src-tauri/src/gameins.rs b/src-tauri/src/gameins.rs
index 5f12e1a..a001514 100644
--- a/src-tauri/src/gameins.rs
+++ b/src-tauri/src/gameins.rs
@@ -1,5 +1,3 @@
-// 只在 Windows 编译
-#![cfg_attr(not(debug_assertions), windows_subsystem = "windows")]
// --- 1. 导入所需模块 ---
use thiserror::Error;
@@ -123,7 +121,7 @@ pub async fn install_game(window: tauri::Window, target_dir: String) -> Result, // MAC 地址,可能不存在
+ pub addr: String,
+ pub mac: Option,
}
fn map_interface_to_info(interface: &NetworkInterface) -> InterfaceInfo {
diff --git a/src/lib/assets/images/tl.png b/src/lib/assets/images/tl.png
new file mode 100644
index 0000000..e514c9c
Binary files /dev/null and b/src/lib/assets/images/tl.png differ
diff --git a/src/lib/components/layout/Header.svelte b/src/lib/components/layout/Header.svelte
index f927e03..bf06174 100644
--- a/src/lib/components/layout/Header.svelte
+++ b/src/lib/components/layout/Header.svelte
@@ -10,7 +10,7 @@
-
+
diff --git a/src/routes/install/+page.svelte b/src/routes/install/+page.svelte
index 37f8a7e..a0b9338 100644
--- a/src/routes/install/+page.svelte
+++ b/src/routes/install/+page.svelte
@@ -4,6 +4,7 @@
// --- 1. 导入 Svelte 和 Tauri API ---
import { onMount } from 'svelte';
import { listen } from '@tauri-apps/api/event';
+ import { goto } from '$app/navigation';
let installPath = '';
let isInstalling = false;
@@ -91,7 +92,7 @@
// 仅在最后显示成功弹窗
alert(`安装完成!\n${result}`);
-
+ await goto('/success')
} catch (error) {
console.error('安装失败:', error);
log(`❌ 安装失败: ${error}`); // 将错误也记录到日志中
@@ -178,19 +179,5 @@
\ No newline at end of file
diff --git a/src/routes/success/+page.svelte b/src/routes/success/+page.svelte
new file mode 100644
index 0000000..116cf1b
--- /dev/null
+++ b/src/routes/success/+page.svelte
@@ -0,0 +1,16 @@
+
+
+
\ No newline at end of file