@echo off rem ASCII only - cmd.exe reads .cmd in the system codepage, not UTF-8. rem Builds deepseek-api.exe from tray.cs with the C# compiler shipped in Windows. setlocal set CSC=%WINDIR%\Microsoft.NET\Framework64\v4.0.30319\csc.exe if not exist "%CSC%" set CSC=%WINDIR%\Microsoft.NET\Framework\v4.0.30319\csc.exe if not exist "%CSC%" ( echo csc.exe not found. .NET Framework 4.x is required. exit /b 1 ) "%CSC%" /nologo /target:winexe /optimize+ /out:"%~dp0deepseek-api.exe" ^ /win32icon:"%~dp0icon.ico" ^ /r:System.dll /r:System.Drawing.dll /r:System.Windows.Forms.dll ^ /r:System.Web.Extensions.dll "%~dp0tray.cs" if errorlevel 1 exit /b 1 echo Built: %~dp0deepseek-api.exe