mirror of https://github.com/stella-emu/stella.git
Updated Windows build script; it now correctly generates ZIP file (containing both 32/64bit files) and InnoSetup EXE files for 32/64bit.
git-svn-id: svn://svn.code.sf.net/p/stella/code/trunk@1879 8b62c5a3-ac7e-4cc8-8f21-d9a121418aba
This commit is contained in:
parent
66ac671b9b
commit
b41354b325
|
@ -3,12 +3,17 @@
|
||||||
echo Stella build script for creating win32 and x64 builds.
|
echo Stella build script for creating win32 and x64 builds.
|
||||||
echo This will create installers (based on InnoSetup) for both 32 and 64-bit,
|
echo This will create installers (based on InnoSetup) for both 32 and 64-bit,
|
||||||
echo as well as a ZIP archive containing both versions.
|
echo as well as a ZIP archive containing both versions.
|
||||||
echo The 'flip' and 'zip' utilities must be installed in your path.
|
echo.
|
||||||
|
echo ! The 'zip' utility must be installed in your path.
|
||||||
|
echo ! InnoSetup should be linked to this directory as 'iscc.lnk'
|
||||||
echo.
|
echo.
|
||||||
echo !!! Make sure the code has already been compiled in Visual Studio
|
echo !!! Make sure the code has already been compiled in Visual Studio
|
||||||
echo !!! before launching this command.
|
echo !!! before launching this command.
|
||||||
echo.
|
echo.
|
||||||
|
|
||||||
|
set RELEASE_32=Release
|
||||||
|
set RELEASE_64=x64\Release
|
||||||
|
|
||||||
set /p STELLA_VER=Enter Stella version:
|
set /p STELLA_VER=Enter Stella version:
|
||||||
echo.
|
echo.
|
||||||
set /p TO_BUILD=Version to build (32/64/a=all):
|
set /p TO_BUILD=Version to build (32/64/a=all):
|
||||||
|
@ -28,11 +33,6 @@ if %TO_BUILD% == a (
|
||||||
set BUILD_64=1
|
set BUILD_64=1
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
set RELEASE_32="Release"
|
|
||||||
set RELEASE_64="x64\Release"
|
|
||||||
|
|
||||||
|
|
||||||
if %BUILD_32% == 1 (
|
if %BUILD_32% == 1 (
|
||||||
if not exist %RELEASE_32% (
|
if not exist %RELEASE_32% (
|
||||||
echo The 32-bit build was not found in the '%RELEASE_32%' directory
|
echo The 32-bit build was not found in the '%RELEASE_32%' directory
|
||||||
|
@ -73,7 +73,6 @@ if %BUILD_64% == 1 (
|
||||||
copy %RELEASE_64%\zlibwapi.dll %STELLA_DIR%\64-bit
|
copy %RELEASE_64%\zlibwapi.dll %STELLA_DIR%\64-bit
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
echo Copying DOC files ...
|
echo Copying DOC files ...
|
||||||
xcopy ..\..\docs\* %STELLA_DIR%\docs /s /q
|
xcopy ..\..\docs\* %STELLA_DIR%\docs /s /q
|
||||||
copy ..\..\Announce.txt %STELLA_DIR%\docs
|
copy ..\..\Announce.txt %STELLA_DIR%\docs
|
||||||
|
@ -83,13 +82,31 @@ copy ..\..\License.txt %STELLA_DIR%\docs
|
||||||
copy ..\..\Readme.txt %STELLA_DIR%\docs
|
copy ..\..\Readme.txt %STELLA_DIR%\docs
|
||||||
copy ..\..\README-SDL.txt %STELLA_DIR%\docs
|
copy ..\..\README-SDL.txt %STELLA_DIR%\docs
|
||||||
copy ..\..\Todo.txt %STELLA_DIR%\docs
|
copy ..\..\Todo.txt %STELLA_DIR%\docs
|
||||||
for %%a in (%STELLA_DIR%\docs\*.txt) do (
|
::for %%a in (%STELLA_DIR%\docs\*.txt) do (
|
||||||
flip -d "%%a"
|
:: flip -d "%%a"
|
||||||
|
::)
|
||||||
|
|
||||||
|
:: Actually create the ZIP file
|
||||||
|
echo Creating ZIP file ...
|
||||||
|
zip -q -r Output\%STELLA_DIR%-windows.zip %STELLA_DIR%
|
||||||
|
|
||||||
|
:: Now create the Inno EXE files
|
||||||
|
if not exist "iscc.lnk" (
|
||||||
|
echo InnoSetup 'iscc.lnk' not found - EXE files not created
|
||||||
|
goto done
|
||||||
|
)
|
||||||
|
if %BUILD_32% == 1 (
|
||||||
|
echo Creating 32-bit EXE ...
|
||||||
|
iscc.lnk %CD%\stella.iss /q "/dSTELLA_VER=%STELLA_VER%" "/dSTELLA_ARCH=win32" "/dSTELLA_PATH=%STELLA_DIR%\32-bit" "/dSTELLA_DOCPATH=%STELLA_DIR%\docs"
|
||||||
|
)
|
||||||
|
if %BUILD_64% == 1 (
|
||||||
|
echo Creating 64-bit EXE ...
|
||||||
|
iscc.lnk %CD%\stella.iss /q "/dSTELLA_VER=%STELLA_VER%" "/dSTELLA_ARCH=x64" "/dSTELLA_PATH=%STELLA_DIR%\64-bit" "/dSTELLA_DOCPATH=%STELLA_DIR%\docs"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
:: Cleanup time
|
||||||
|
echo Removing %STELLA_DIR% ...
|
||||||
|
rmdir %STELLA_DIR% /s /q
|
||||||
|
|
||||||
:done
|
:done
|
||||||
echo.
|
echo.
|
||||||
|
|
Loading…
Reference in New Issue