25 lines
695 B
Batchfile
25 lines
695 B
Batchfile
@echo off
|
|
REM Build script for Desktop Roach Rampage
|
|
REM Compiles the C# source code into a Windows executable
|
|
|
|
echo Building Desktop Roach Rampage...
|
|
cd /d "%~dp0app"
|
|
|
|
REM Use .NET Framework compiler
|
|
C:\Windows\Microsoft.NET\Framework64\v4.0.30319\csc.exe /target:winexe /r:System.dll /r:System.Drawing.dll /r:System.Windows.Forms.dll /out:DesktopRoachRampage.exe Program.cs
|
|
|
|
if %ERRORLEVEL% NEQ 0 (
|
|
echo Build failed!
|
|
pause
|
|
exit /b 1
|
|
)
|
|
|
|
echo Copying executable to bin directory...
|
|
if not exist "..\bin" mkdir "..\bin"
|
|
copy /Y "DesktopRoachRampage.exe" "..\bin\" > nul
|
|
|
|
echo.
|
|
echo Build completed successfully!
|
|
echo Executable: DesktopRoachRampage\bin\DesktopRoachRampage.exe
|
|
pause
|