Moved and updated packaging scripts for Windows

This commit is contained in:
Florian Rival
2015-04-02 21:41:14 +13:00
parent 48418e58fe
commit 6e911147d0
6 changed files with 61 additions and 63 deletions

1
.gitignore vendored
View File

@@ -32,6 +32,7 @@ Binaries/Packaging/opensuse-build-service/gdevelop/
Binaries/Packaging/opensuse-build-service/final/
Binaries/Packaging/GDevelop.app/Contents/Frameworks
Binaries/Packaging/GDevelop.app/Contents/Resources
Binaries/Packaging/logs
/WebIDE
*.depend
*.layout

View File

@@ -0,0 +1,53 @@
@echo off > %TEMP%\#
md logs
setLocal EnableDelayedExpansion
echo Script for packaging GDevelop for Windows
echo.
::Try to find Inno Setup
set INNOSETUP_EXE=C:\Program Files (x86)\Inno Setup 5\ISCC.exe
IF NOT EXIST "%INNOSETUP_EXE%" set INNOSETUP_EXE=C:\Program Files\Inno Setup 5\ISCC.exe
IF EXIST "%INNOSETUP_EXE%" (
echo "Note: InnoSetup found at %INNOSETUP_EXE%"
) ELSE (
echo Warning: InnoSetup not found! Skipping installer creation.
SET SKIPINSTALLER=1
)
echo Please ensure that locale directory is up to date with latest translations.
pause
echo Compiling Release target...
cd ..
IF EXIST "build" (
cd build
mingw32-make -j 4
cd ..
) ELSE (
echo Unable to find build directory, just make sure that GD is compiled inside Release_Windows
)
echo.
echo --Removing useless files...
del Output\Release_Windows\Examples\*.gdg.autosave > NUL 2> NUL
del Output\Release_Windows\log.txt > NUL 2> NUL
echo.
echo --Creating installer...
IF NOT "%SKIPINSTALLER%"=="1" "C:\Program Files (x86)\Inno Setup 5\ISCC.exe" Releases\InnoSetupInstallerScript.iss /Q
IF "%SKIPINSTALLER%"=="1" echo (Skipped)
echo.
echo --Creating archive...
if exist Releases\gd3xxxx.zip (del Releases\gd3xxxx.zip)
cd Output\Release_Windows\
IF NOT "%SKIPINSTALLERANDARCHIVE%"=="1" "..\..\..\ExtLibs\7za.exe" a ..\..\Releases\gd3xxxx.zip * > ..\..\Packaging\logs\zipArchiveLog.txt
IF "%SKIPINSTALLERANDARCHIVE%"=="1" echo (Skipped)
cd ..\..\..
echo. >CON
echo Finished. Do not forget to : >CON
echo -Update news.txt >CON
echo -Update pad file >CON
pause >CON

View File

@@ -1,5 +1,2 @@
This directory is used to package GDevelop for linux targets.
For Windows, packaging is made using Inno Setup, see the Binaries/Releases directory.
For all systems, the packaging scripts should be called by the main script
doing the full release procedure (see the root scripts directory).
This directory contains scripts used to package GDevelop.
For Windows, packaging is made using Inno Setup, please ensure you have it installed.

View File

@@ -29,6 +29,10 @@ IF NOT EXIST "%MINGW_DIR%" set MINGW_DIR="C:\MinGW"
IF EXIST "%MINGW_DIR%" (
xcopy "%MINGW_DIR%" "%destDir%\MinGW32\" /E /D /Q
::Delete fat gdb.exe (+/-30mb)
del "%destDir%\MinGW32\bin\gdb.exe"
::Delete fat installer (+/-30mb)
del "%destDir%\MinGW32\__installer\"*.exe
echo Done - MinGW found in %MINGW_DIR%
) ELSE (
echo MinGW not found!

View File

@@ -1,57 +0,0 @@
@echo off > %TEMP%\#
cd ..
setLocal EnableDelayedExpansion
echo --Release procedure
echo.
echo --Is Runtime executable executing gam.egd and not another file?
choice /c:y
echo --Is res directory up to date?
choice /c:y
echo --Is locale directory up to date?
choice /c:y
echo --Generate installer and archive?
SET SKIPINSTALLERANDARCHIVE=0
choice /C:YN /T 10 /D Y
IF %ERRORLEVEL%==2 SET SKIPINSTALLERANDARCHIVE=1
IF %ERRORLEVEL%==1 SET SKIPINSTALLERANDARCHIVE=0
echo --Compiling Release target
cd Binaries/.build
ninja
cd ..\..
echo.
echo --Ensuring GDC++ headers and pch up-to-date for release
cd GDCpp/scripts
call CopyHeadersToGD.bat
cd ..\..
echo.
echo --Removing useless files...
del Binaries\Output\Release_Windows\Examples\*.gdg.autosave > NUL 2> NUL
del Binaries\Output\Release_Windows\log.txt > NUL 2> NUL
echo.
echo --Creating installer...
if exist Binaries\Releases\gd3xxxx.exe (del Binaries\Releases\gd3xxxx.exe)
IF NOT "%SKIPINSTALLERANDARCHIVE%"=="1" "C:\Program Files (x86)\Inno Setup 5\ISCC.exe" Binaries\Releases\InnoSetupInstallerScript.iss /Q
IF "%SKIPINSTALLERANDARCHIVE%"=="1" echo (Skipped)
echo.
echo --Creating archive...
if exist Binaries\Releases\gd3xxxx.zip (del Binaries\Releases\gd3xxxx.zip)
cd Binaries\Output\Release_Windows\
IF NOT "%SKIPINSTALLERANDARCHIVE%"=="1" "C:\Program Files (x86)\7-Zip\7z.exe" a ..\..\Releases\gd3xxxx.zip * > ..\..\..\scripts\logs\zipArchiveLog.txt
IF "%SKIPINSTALLERANDARCHIVE%"=="1" echo (Skipped)
cd ..\..\..
echo. >CON
echo Finished. Do not forget to : >CON
echo -Update news.txt >CON
echo -Update pad file >CON
pause >CON

View File

@@ -6,7 +6,7 @@ DIRECTORY="../Binaries/build"
fi
if [ -d "$DIRECTORY" ]; then
cd "$DIRECTORY"
if [ -f "build.ninha" ]; then
if [ -f "build.ninja" ]; then
ninja
fi
if [ -f "Makefile" ]; then