891128fec3
- P1b: 点击通知切回 Windows Terminal 原标签(源生成 COM UIAutomation,AOT 友好) - Toast 设为工具窗口(WS_EX_TOOLWINDOW),从任务栏与 Alt+Tab 隐藏 - 投递改为落盘队列 spool + FileSystemWatcher,CLI 毫秒级返回不阻塞 Claude Code - 移除命名管道(PipeServer/PipeClient/PipeMessage),新增 NotificationSpool/SpoolWatcher - NativeAOT 发布配置 + scripts/build.bat(vcvars 自动配置 MSVC 工具链) - .gitattributes 保证 .bat 用 CRLF
27 lines
997 B
Batchfile
27 lines
997 B
Batchfile
@echo off
|
|
setlocal
|
|
rem 切到仓库根目录(scripts 的上一级)
|
|
cd /d "%~dp0\.."
|
|
|
|
rem NativeAOT 的原生链接需要 MSVC 工具链,先用 vswhere 找到 VS 并配置环境
|
|
set "VSWHERE=%ProgramFiles(x86)%\Microsoft Visual Studio\Installer\vswhere.exe"
|
|
if exist "%VSWHERE%" (
|
|
for /f "usebackq tokens=*" %%i in (`"%VSWHERE%" -latest -products * -requires Microsoft.VisualStudio.Component.VC.Tools.x86.x64 -property installationPath`) do set "VSPATH=%%i"
|
|
)
|
|
if defined VSPATH if exist "%VSPATH%\VC\Auxiliary\Build\vcvars64.bat" (
|
|
echo === 配置 MSVC 环境: %VSPATH% ===
|
|
call "%VSPATH%\VC\Auxiliary\Build\vcvars64.bat" >nul
|
|
)
|
|
|
|
echo === NativeAOT publish (win-x64) -^> bin\notify.exe ===
|
|
dotnet publish Notify -c Release -r win-x64 -p:PublishAot=true -o bin
|
|
if errorlevel 1 (
|
|
echo.
|
|
echo *** 发布失败。若提示找不到 link.exe,请从 "Developer Command Prompt for VS" 运行本脚本 ***
|
|
exit /b 1
|
|
)
|
|
|
|
echo.
|
|
echo === 完成: %CD%\bin\notify.exe ===
|
|
endlocal
|