feat: 初始版本
This commit is contained in:
@@ -0,0 +1,24 @@
|
||||
@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
|
||||
Reference in New Issue
Block a user