From 758a21f9ad840ae429653f06a38bf4f436be2b0a Mon Sep 17 00:00:00 2001 From: "DESKTOP-3BO4HSG\\ksat" Date: Thu, 9 Mar 2023 15:48:09 +0800 Subject: [PATCH] perf: update new serve --- README.md | 10 +++++++--- STranslate/ClearCache.bat | 2 ++ STranslate/Properties/AssemblyInfo.cs | 4 ++-- STranslate/STranslate.csproj | 3 +++ 4 files changed, 14 insertions(+), 5 deletions(-) create mode 100644 STranslate/ClearCache.bat diff --git a/README.md b/README.md index c2967c5..da88bcc 100644 --- a/README.md +++ b/README.md @@ -69,13 +69,17 @@ ## 卸载 1. 删除软件运行目录 -2. 进入目录 `C:\Users\YourName\AppData\Local\` 后删除 `STranslate` 缓存目录即可 +2. 打开 cmd 运行下面的命令即可 + +```shell +rd /s /q "%localappdata%\stranslate" +``` ## 开发历史 - 2023-03-02 0.25 添加复制提醒动画 -- 2023-02-28 0.24 添加 deepl([deno.dev](deno.dev)) 接口(已经安装的删除 `C:\Users\YourName\AppData\Local\STranslate` 后打开即可更新接口) +- 2023-02-28 0.24 添加 deepl([deno.dev](deno.dev)) 接口(已经安装的cmd运行 `del %localappdata%\stranslate\stranslate.json` 后打开即可更新接口) - 2023-02-24 0.22 优化分辨率切换时托盘图标模糊问题 @@ -125,7 +129,7 @@ public static string TesseractGetText(Bitmap bmp) 当请求人数较多时,远端接口可能暂时失效,可自行运行翻译接口程序 1. **【推荐】** 下载对应平台可 [执行文件](https://github.com/ZGGSONG/STranslate/releases/tag/0.01),随后在软件右上角选择 `local` 接口即可 -2. 【进阶】 下载 [docker镜像](https://hub.docker.com/r/zggsong/translate),关闭软件 - 修改 `C:\Users\YourName\AppData\Local\STranslate\stranslate.json` 中接口地址 - 重启软件即可 +2. 【进阶】 下载 [docker镜像](https://hub.docker.com/r/zggsong/translate),关闭软件 - cmd 运行 `start %localappdata%\stranslate\stranslate.json` - 修改接口地址 - 重启软件即可 ## 参考项目 diff --git a/STranslate/ClearCache.bat b/STranslate/ClearCache.bat new file mode 100644 index 0000000..f53c6ad --- /dev/null +++ b/STranslate/ClearCache.bat @@ -0,0 +1,2 @@ +@echo off +rd /s /q "%localappdata%\stranslate" \ No newline at end of file diff --git a/STranslate/Properties/AssemblyInfo.cs b/STranslate/Properties/AssemblyInfo.cs index 01d6a5b..e0985dc 100644 --- a/STranslate/Properties/AssemblyInfo.cs +++ b/STranslate/Properties/AssemblyInfo.cs @@ -47,6 +47,6 @@ using System.Windows; //可以指定所有这些值,也可以使用“生成号”和“修订号”的默认值 //通过使用 "*",如下所示: // [assembly: AssemblyVersion("1.0.*")] -[assembly: AssemblyVersion("0.2.5.0")] -[assembly: AssemblyFileVersion("0.2.5.0")] +[assembly: AssemblyVersion("0.2.6.0")] +[assembly: AssemblyFileVersion("0.2.6.0")] [assembly: Guid("CE252DD8-179F-4544-9989-453F5DEA378D")] \ No newline at end of file diff --git a/STranslate/STranslate.csproj b/STranslate/STranslate.csproj index f31bd02..9f56b0a 100644 --- a/STranslate/STranslate.csproj +++ b/STranslate/STranslate.csproj @@ -216,6 +216,9 @@ PreserveNewest + + PreserveNewest + Always