From 78f74f71f683728e55edef322d9836254405e313 Mon Sep 17 00:00:00 2001 From: tfarcraw <123211521@163.com> Date: Fri, 20 Nov 2026 17:58:05 +0800 Subject: [PATCH] =?UTF-8?q?=E9=83=A8=E7=BD=B2=E8=84=9A=E6=9C=AC=E5=BF=BD?= =?UTF-8?q?=E7=95=A5=E6=9C=AA=E8=B7=9F=E8=B8=AA=E6=96=87=E4=BB=B6=E5=B9=B6?= =?UTF-8?q?=E4=BF=AE=E6=AD=A3=20184=20=E6=9C=BA=E5=99=A8=E9=83=A8=E7=BD=B2?= =?UTF-8?q?=E8=AE=B0=E5=BD=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- WINDOWS.md | 6 ++++-- tools/Deploy-Windows.ps1 | 3 ++- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/WINDOWS.md b/WINDOWS.md index 3db3e57..78e2066 100644 --- a/WINDOWS.md +++ b/WINDOWS.md @@ -27,8 +27,10 @@ Windows 工位机用 SSH/SFTP 部署,目录约定与 `tools/Deploy-Linux.ps1` Ryzen 5 5600XT、32GB 内存、NVIDIA GeForce RTX 5060(驱动 32.0.16.1088)、C 盘 200GB(部署后剩余 135.3GB)。 系统已有 VC++ 2015-2022 运行库、`bsdtar 3.8.4`,目录联接和快捷方式创建均已实测可用。免密 SSH 使用当前账户的密钥。 -- 版本目录:`C:\sophelper\releases\avalonia-20261120-175451-b613630-dirty`,源码提交 `b613630` 加当时未提交的运行设置与判定改动, - 276 个文件、1.61GB(含 CUDA 13 / cuDNN 9 应用内运行库)。 +- 版本目录:`C:\sophelper\releases\avalonia-20261120-175451-b613630-dirty`,源码提交 `b613630`, + 276 个文件、1.61GB(含 CUDA 13 / cuDNN 9 应用内运行库)。名称里的 `-dirty` 只反映当时部署脚本自身尚未提交(未跟踪), + 已跟踪源码当时与 `b613630` 一致;本机 `SopHelper.Avalonia.exe/.dll` 与 `SopHelper.CrossPlatform.Engine.dll` 的 SHA-256 + 与远端逐一核对一致。脚本已改为忽略未跟踪文件,之后的版本名不再因此带上 `-dirty`。 - 自检:本机 `--check-runtime` 通过;远端 `--check-runtime` 返回 `handBackend=CPU`、`sop=Completed`, `--check-gpu` 返回 `handBackend=GPU (CUDA)`、`sop=Completed`,即 RTX 5060 上 CUDA 推理已启用(自检 AI 门控为模拟,不代表 djev 接口联调通过)。 - 启动入口:`C:\Users\Administrator\Desktop\SopHelper.lnk` 与开始菜单 `Programs\SopHelper.lnk`, diff --git a/tools/Deploy-Windows.ps1 b/tools/Deploy-Windows.ps1 index d151818..7bb0c17 100644 --- a/tools/Deploy-Windows.ps1 +++ b/tools/Deploy-Windows.ps1 @@ -15,7 +15,8 @@ $repo = Split-Path $PSScriptRoot -Parent $output = Join-Path $repo 'artifacts\avalonia\win-x64' $remoteRootFwd = $InstallRoot.Replace('\', '/') $sha = (& git -C $repo rev-parse --short HEAD | Out-String).Trim() -$dirty = @(& git -C $repo status --porcelain).Count -gt 0 +# 未跟踪的部署脚本本身不算“脏”,只看已跟踪文件是否有未提交改动。 +$dirty = @(& git -C $repo status --porcelain --untracked-files=no).Count -gt 0 if (!$ReleaseId) { $ReleaseId = 'avalonia-' + (Get-Date -Format 'yyyyMMdd-HHmmss') + '-' + $sha if ($dirty) { $ReleaseId += '-dirty' }