Files
2026-10-09 13:43:27 +00:00

24 lines
916 B
Batchfile

@echo off
setlocal
cd /d "%~dp0"
echo [1/3] Setting up build environment...
set "CSC=%SystemRoot%\Microsoft.NET\Framework64\v4.0.30319\csc.exe"
if not exist "%CSC%" (
echo Error: .NET Framework compiler not found at %CSC%
exit /b 1
)
echo [2/3] Compiling DeepSeekPrimetime.exe...
"%CSC%" /nologo /target:winexe /optimize+ /platform:anycpu /win32icon:app.ico /resource:policy-public-key.xml,policy-public-key.xml /out:"DeepSeekPrimetime.exe" /r:System.dll,System.Core.dll,System.Drawing.dll,System.Windows.Forms.dll,System.Runtime.Serialization.dll src\Program.cs src\AssemblyInfo.cs src\PricingPolicy.cs src\PolicyClient.cs src\DeepSeekSchedule.cs src\IconGenerator.cs src\StatusForm.cs src\TrayApplicationContext.cs
if %ERRORLEVEL% neq 0 (
echo Build failed!
exit /b %ERRORLEVEL%
)
echo [3/3] Build succeeded: DeepSeekPrimetime.exe
copy /y "DeepSeekPrimetime.exe" "DeepSeekTray.exe" >nul
echo.