diff --git a/pages/gameList.vue b/pages/gameList.vue index 0c0bec5..ee02003 100644 --- a/pages/gameList.vue +++ b/pages/gameList.vue @@ -16,14 +16,14 @@ class="mr-[5px]" @click="handleCreate" > - 新增本地游戏 + 新增游戏 - 打开封面目录 + 封面目录 @@ -92,10 +92,13 @@ @click.stop="handleCreate" shadow="hover" > -
+
+
+ 支持从桌面拖放新增 +
@@ -191,9 +194,9 @@ diff --git a/pages/index.vue b/pages/index.vue index bc3897e..89c728f 100644 --- a/pages/index.vue +++ b/pages/index.vue @@ -1091,6 +1091,7 @@ }; const handleAutoStartByTask = async () => { + if (import.meta.env.DEV) return ElMessage.warning("开发环境不支持开机自启"); await invoke("spawn_autostart", { enabled: !config.autoStart }); const is_enable_by_task = (await invoke("autostart_is_enabled")) as boolean; config.autoStart = is_enable_by_task; @@ -1101,6 +1102,7 @@ let is_enable_by_task = (await invoke("autostart_is_enabled")) as boolean; if (is_enable_by_task) { // 每次打开Exe重新加载一次开机自启,因为可能路径变了 + if (import.meta.env.DEV) return ElMessage.warning("开发环境不支持开机自启"); await invoke("spawn_autostart", { enabled: false }); await invoke("spawn_autostart", { enabled: true }); } diff --git a/src-tauri/capabilities/default.json b/src-tauri/capabilities/default.json index 6240e6e..29fc637 100644 --- a/src-tauri/capabilities/default.json +++ b/src-tauri/capabilities/default.json @@ -88,11 +88,19 @@ "args": true, "cmd": "ping", "name": "ping" + }, + { + "args": true, + "cmd": "powershell", + "name": "powershell" } ] }, "fs:default", - "fs:allow-read-dir", + { + "identifier": "fs:allow-read-dir", + "allow": [{ "path": "$DESKTOP" }, { "path": "$DESKTOP/*" }, { "path": "**/*" }, { "path": "**" }] + }, "fs:allow-exists", "fs:allow-open", "fs:allow-resource-read", diff --git a/src-tauri/easytier/easytier-cli.exe b/src-tauri/easytier/easytier-cli.exe index b10fc21..666a114 100644 Binary files a/src-tauri/easytier/easytier-cli.exe and b/src-tauri/easytier/easytier-cli.exe differ diff --git a/src-tauri/easytier/easytier-core.exe b/src-tauri/easytier/easytier-core.exe index 07e44e2..9eacece 100644 Binary files a/src-tauri/easytier/easytier-core.exe and b/src-tauri/easytier/easytier-core.exe differ