diff --git a/CHANGELOG.md b/CHANGELOG.md index 0537e35..f62f846 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,8 @@ ## [Unreleased] +## [0.2.0] - 2026-08-30 + ### Added - 新增系统托盘图标:左键单击托盘图标显示设置界面;右键菜单提供 @@ -16,6 +18,8 @@ 开机启动注册表写入、轮盘全局开关 - 快捷指令「运行脚本」支持 .cmd / .bat 批处理文件(通过 cmd /c 执行), 文件选择器同步移除不再支持的 .psm1 +- 发布 Release 自包含版本:.NET 8 运行时与 Windows App SDK 运行时均打包 + 进应用目录,用户无需手动安装 .NET 环境 ### Changed diff --git a/Directory.Build.props b/Directory.Build.props index 0b4a734..0004e63 100644 --- a/Directory.Build.props +++ b/Directory.Build.props @@ -3,7 +3,7 @@ latest enable enable - 0.1.0 + 0.2.0 一键运行 OneClickRun diff --git a/README.md b/README.md index 5127173..d5caf5e 100644 --- a/README.md +++ b/README.md @@ -37,9 +37,10 @@ ## 环境要求 -- Windows 10(19041 及以上)或 Windows 11 -- .NET 8 SDK -- Windows App SDK 2.4.0(NuGet 自动还原,应用已配置自包含 Windows App SDK) +- 运行环境:Windows 10(19041 及以上)或 Windows 11 +- 开发环境:.NET 8 SDK、Windows App SDK 2.4.0(NuGet 自动还原) +- Release 自包含版本已将 .NET 8 运行时与 Windows App SDK 运行时打包进 + 应用目录,最终用户无需手动安装 .NET 环境 ## 构建与运行 @@ -49,6 +50,15 @@ # 运行(调试构建输出) src\OneClickRun.App\bin\x64\Debug\net8.0-windows10.0.19041.0\win-x64\OneClickRun.exe + # 发布 Release 自包含版本(含 .NET 运行时,无需用户安装 .NET) + dotnet publish src\OneClickRun.App\OneClickRun.App.csproj -c Release -r win-x64 --self-contained true -o dist\publish\win-x64 + + # 将发布目录压缩为分发包 + powershell Compress-Archive -Path dist\publish\win-x64\* -DestinationPath dist\OneClickRun-0.2.0-win-x64.zip + +Release 发布产物位于 dist\ 目录(已加入 .gitignore);最终用户解压后直接 +运行 OneClickRun.exe 即可,无需安装 .NET 或 Windows App SDK。 + ## 使用说明 - 默认快捷键 Ctrl+Alt+Q 呼出轮盘;在「呼出与快捷键」页可修改