Files
Alex Cube 9e25f4de5d Значок: icon.ico вшивается в exe
csc собирался без /win32icon, поэтому у exe не было значка вовсе, а окно
пыталось сделать значок из icon.png через GetHicon — тот теряет альфу
и не даёт нужных размеров. Теперь многоразмерный icon.ico вшит в exe,
а окно берёт значок из себя же.
2026-08-26 16:51:47 +03:00

17 lines
688 B
Batchfile

@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