1
0
Fork 0
fgmeta/hudson_win_package_release.bat

41 lines
1.2 KiB
Batchfile
Raw Normal View History

2011-01-23 19:57:32 +00:00
ECHO OFF
IF NOT DEFINED WORKSPACE SET WORKSPACE=%~dp0
ECHO Packaging root is %WORKSPACE%
subst X: /D
subst X: %WORKSPACE%.
2011-01-23 19:57:32 +00:00
REM construct information file to be read by Inno-setup
set PATH=%WORKSPACE%\install\msvc100\OpenSceneGraph\bin;%PATH%
REM add 7-zip to the PATH
set PATH=%PATH%;C:\Program Files\7-zip
2011-01-23 19:57:32 +00:00
REM indirect way to get command output into an environment variable
osgversion --so-number > %TEMP%\osg-so-number.txt
osgversion --version-number > %TEMP%\osg-version.txt
osgversion --openthreads-soversion-number > %TEMP%\openthreads-so-number.txt
2011-01-23 19:57:32 +00:00
SET /P FLIGHTGEAR_VERSION=<flightgear\version
SET /P OSG_VERSION=<%TEMP%\osg-version.txt
SET /P OSG_SO_NUMBER=<%TEMP%\osg-so-number.txt
SET /P OT_SO_NUMBER=<%TEMP%\openthreads-so-number.txt
2011-01-23 19:57:32 +00:00
ECHO #define FGVersion "%FLIGHTGEAR_VERSION%" > InstallConfig.iss
ECHO #define OSGVersion "%OSG_VERSION%" >> InstallConfig.iss
ECHO #define OSGSoNumber "%OSG_SO_NUMBER%" >> InstallConfig.iss
ECHO #define OTSoNumber "%OT_SO_NUMBER%" >> InstallConfig.iss
2011-01-23 19:57:32 +00:00
set DATA_FILE=FlightGear-%FLIGHTGEAR_VERSION%-data
2011-01-23 19:57:32 +00:00
REM extract the data files
7z e -aoa %DATA_FILE%.tar.bz2 && 7z x -aoa %DATA_FILE%.tar
2011-01-23 19:57:32 +00:00
REM run Inno-setup!
REM use iscc instead of compil32 for better error reporting
2011-01-23 19:57:32 +00:00
iscc FlightGear.iss