refactoring app name to spacetris and new icon
This commit is contained in:
@ -1,11 +1,11 @@
|
||||
@echo off
|
||||
REM Simple Production Build Script for Tetris SDL3
|
||||
REM Simple Production Build Script for Spacetris SDL3
|
||||
REM This batch file builds and packages the game for distribution
|
||||
|
||||
setlocal EnableDelayedExpansion
|
||||
|
||||
echo ======================================
|
||||
echo Tetris SDL3 Production Builder
|
||||
echo Spacetris SDL3 Production Builder
|
||||
echo ======================================
|
||||
echo.
|
||||
|
||||
@ -45,13 +45,13 @@ cd ..
|
||||
|
||||
REM Create distribution directory
|
||||
echo Creating distribution package...
|
||||
mkdir "dist\TetrisGame"
|
||||
mkdir "dist\SpacetrisGame"
|
||||
|
||||
REM Copy executable
|
||||
if exist "build-release\Release\tetris.exe" (
|
||||
copy "build-release\Release\tetris.exe" "dist\TetrisGame\"
|
||||
) else if exist "build-release\tetris.exe" (
|
||||
copy "build-release\tetris.exe" "dist\TetrisGame\"
|
||||
if exist "build-release\Release\spacetris.exe" (
|
||||
copy "build-release\Release\spacetris.exe" "dist\SpacetrisGame\"
|
||||
) else if exist "build-release\spacetris.exe" (
|
||||
copy "build-release\spacetris.exe" "dist\SpacetrisGame\"
|
||||
) else (
|
||||
echo Error: Executable not found!
|
||||
pause
|
||||
@ -60,12 +60,12 @@ if exist "build-release\Release\tetris.exe" (
|
||||
|
||||
REM Copy assets
|
||||
echo Copying game assets...
|
||||
if exist "assets" xcopy "assets" "dist\TetrisGame\assets\" /E /I /Y
|
||||
if exist "FreeSans.ttf" copy "FreeSans.ttf" "dist\TetrisGame\"
|
||||
if exist "assets" xcopy "assets" "dist\SpacetrisGame\assets\" /E /I /Y
|
||||
if exist "FreeSans.ttf" copy "FreeSans.ttf" "dist\SpacetrisGame\"
|
||||
|
||||
REM Copy SDL DLLs (if available) - SDL_image no longer needed
|
||||
echo Copying dependencies...
|
||||
set "PackageDir=dist\TetrisGame"
|
||||
set "PackageDir=dist\SpacetrisGame"
|
||||
set "copiedDependencies=0"
|
||||
|
||||
call :CopyDependencyDir "build-release\vcpkg_installed\x64-windows\bin"
|
||||
@ -76,19 +76,19 @@ if "%copiedDependencies%"=="0" (
|
||||
)
|
||||
|
||||
REM Create launcher batch file
|
||||
echo @echo off > "dist\TetrisGame\Launch-Tetris.bat"
|
||||
echo cd /d "%%~dp0" >> "dist\TetrisGame\Launch-Tetris.bat"
|
||||
echo tetris.exe >> "dist\TetrisGame\Launch-Tetris.bat"
|
||||
echo pause >> "dist\TetrisGame\Launch-Tetris.bat"
|
||||
echo @echo off > "dist\SpacetrisGame\Launch-Spacetris.bat"
|
||||
echo cd /d "%%~dp0" >> "dist\SpacetrisGame\Launch-Spacetris.bat"
|
||||
echo spacetris.exe >> "dist\SpacetrisGame\Launch-Spacetris.bat"
|
||||
echo pause >> "dist\SpacetrisGame\Launch-Spacetris.bat"
|
||||
|
||||
echo.
|
||||
echo ======================================
|
||||
echo Build Completed Successfully!
|
||||
echo ======================================
|
||||
echo Package location: dist\TetrisGame
|
||||
echo Package location: dist\SpacetrisGame
|
||||
echo.
|
||||
echo The game is ready for distribution!
|
||||
echo Users can run tetris.exe or Launch-Tetris.bat
|
||||
echo Users can run spacetris.exe or Launch-Spacetris.bat
|
||||
echo.
|
||||
pause
|
||||
goto :eof
|
||||
|
||||
Reference in New Issue
Block a user