增加easytierGame帮助文档,包括删除和打不开界面解决方案

This commit is contained in:
黑先森
2024-11-20 20:26:23 +08:00
parent 37fd7b6fb0
commit fe785f6066
6 changed files with 98 additions and 21 deletions
+4
View File
@@ -32,3 +32,7 @@ html.dark body {
box-sizing: border-box; box-sizing: border-box;
padding: 3px 5px; padding: 3px 5px;
} }
.full-label .el-form-item__label {
width: 100%;
}
+74 -20
View File
@@ -12,9 +12,10 @@
<ElFormItem <ElFormItem
label="服务器" label="服务器"
prop="serverUrl" prop="serverUrl"
class="full-label"
> >
<template #label> <template #label>
<div class="flex items-center gap-[0_5px]"> <div class="flex items-center flex-nowrap gap-[0_5px]">
<div>服务器</div> <div>服务器</div>
<span>-</span> <span>-</span>
<ElTag <ElTag
@@ -29,31 +30,41 @@
> >
获取内核版本 获取内核版本
</ElButton> </ElButton>
<ElTag <div
v-else v-else
type="info" class="flex-1 truncate"
> >
{{ data.coreVersion }} <ElTooltip :content="data.coreVersion">
</ElTag> <ElTag
<ElPopconfirm type="info"
>
{{ data.coreVersion }}
</ElTag>
</ElTooltip>
</div>
<!-- <ElPopconfirm
width="325" width="325"
cancel-button-text="取消" cancel-button-text="取消"
confirm-button-text="继续" confirm-button-text="继续"
title="内核从github下载,需要出国工具,可能下载缓慢或失败,是否继续? title="内核从github下载,需要出国工具,可能下载缓慢或失败,是否继续?
也可以从官方群里手动下载后解压到easytier-game.exe同级目录下的easytier目录里,全部覆盖即可" 也可以从官方群里手动下载后解压到easytier-game.exe同级目录下的easytier目录里,全部覆盖即可"
@confirm="handleUpdateCore" @confirm="handleCoreManagement"
> >
<template #reference> <template #reference> -->
<ElButton <ElButton
:disabled="data.isStart" class="ml-auto"
:loading="data.update" :disabled="data.isStart"
type="warning" @click="handleCoreManagement"
size="small" :loading="data.update"
> type="primary"
{{ data.coreVersion ? "更新内核" : "下载内核" }} size="small"
</ElButton> >
</template> 内核管理
</ElPopconfirm> <!-- {{ data.coreVersion ? "更新内核" : "下载内核" }} -->
</ElButton>
<!-- </template>
</ElPopconfirm> -->
</div> </div>
</template> </template>
<ElSelect <ElSelect
@@ -310,6 +321,36 @@
</div> </div>
</div> </div>
</ElForm> </ElForm>
<ElDialog
width="95%"
top="10px"
append-to-body
:z-index="10"
class="!mb-0"
v-model="coreManagementData.visible"
:close-on-press-escape="false"
title="内核管理"
>
<ElSelect v-model="coreManagementData.data">
<ElOption v-for="(release, idx) in data.releaseList" :key="`${idx}-ray`" :value="release[2]">
{{release[0]}}
</ElOption>
</ElSelect>
<template #footer>
<!-- <div>
<el-text type="danger">导入成功后您当前的部分配置将被替换</el-text>
</div>
<div class="text-right">
<ElButton
size="small"
@click="handleStartImport"
type="primary"
>
导入
</ElButton>
</div> -->
</template>
</ElDialog>
<ElDialog <ElDialog
width="95%" width="95%"
top="10px" top="10px"
@@ -463,6 +504,12 @@
data: "" data: ""
}); });
const coreManagementData = reactive<{ data: ""; [key: string]: any }>({
visible: false,
loading: false,
data: ""
});
const closePrevent = async () => { const closePrevent = async () => {
const appWindow = getCurrentWindow(); const appWindow = getCurrentWindow();
if (appWindow.label == "main") { if (appWindow.label == "main") {
@@ -573,7 +620,7 @@
}, },
async listenConfigStart() { async listenConfigStart() {
const unListen = await listen("config", event => { const unListen = await listen("config", event => {
console.error("config", event.payload); // console.error("config", event.payload);
const ipv4 = config.ipv4; const ipv4 = config.ipv4;
mainStore.$patch(event.payload as any); mainStore.$patch(event.payload as any);
config.ipv4 = ipv4; config.ipv4 = ipv4;
@@ -621,6 +668,11 @@
return [false, null, null]; return [false, null, null];
}; };
const handleCoreManagement = async () => {
coreManagementData.visible = true;
await getReleaseList();
};
const handleUpdateCore = async () => { const handleUpdateCore = async () => {
try { try {
data.update = true; data.update = true;
@@ -641,9 +693,11 @@
}; };
const getReleaseList = async () => { const getReleaseList = async () => {
coreManagementData.loading = true;
const list = await invoke("fetch_easytier_list"); const list = await invoke("fetch_easytier_list");
data.releaseList = list as never[]; data.releaseList = list as never[];
console.error(data.releaseList); coreManagementData.loading = false;
console.log(data.releaseList);
}; };
const handleAutoStart = async () => { const handleAutoStart = async () => {
+16
View File
@@ -0,0 +1,16 @@
[如果界面无法打开]
1.如果已经启动easytier-game.exe可能会在后台运行,打开任务管理器关闭easytier-game.exe
2.使用easytier-game安装目录下的 easytier/tool/MicrosoftEdgeWebview2Setup.exe 安装webview2
3. 再次启用easytier-game.exe
[如果想彻底删除easytierGame]
1. 关闭easytierGame
2. 运行easytier-game安装目录下的 easytier/tool/clear_local_data.bat (需要管理员权限) 输入y确认,清除本地存储数据
3. 删除easytierGame文件夹
+4 -1
View File
@@ -42,11 +42,14 @@
"easytier/config/", "easytier/config/",
"easytier/icons/", "easytier/icons/",
"easytier/config_template.json", "easytier/config_template.json",
"easytier/tool/clear_local_data.bat",
"easytier/tool/WinIPBroadcast.exe", "easytier/tool/WinIPBroadcast.exe",
"easytier/tool/MicrosoftEdgeWebview2Setup.exe",
"easytier/easytier-cli.exe", "easytier/easytier-cli.exe",
"easytier/easytier-core.exe", "easytier/easytier-core.exe",
"easytier/Packet.dll", "easytier/Packet.dll",
"easytier/wintun.dll" "easytier/wintun.dll",
"easytier/帮助.txt"
], ],
"windows": { "windows": {
"webviewInstallMode": { "webviewInstallMode": {