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
|
2012-01-27 00:09:51 +00:00
|
|
|
subst X: %WORKSPACE%.
|
2011-01-23 19:57:32 +00:00
|
|
|
|
|
|
|
REM construct information file to be read by Inno-setup
|
|
|
|
|
|
|
|
|
2012-01-23 22:29:26 +00:00
|
|
|
set PATH=%WORKSPACE%\install\msvc100\OpenSceneGraph\bin;%PATH%
|
2013-03-29 16:06:09 +00:00
|
|
|
|
|
|
|
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
|
2013-11-01 18:02:33 +00:00
|
|
|
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
|
2013-11-01 18:02:33 +00:00
|
|
|
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
|
2013-11-01 18:02:33 +00:00
|
|
|
ECHO #define OTSoNumber "%OT_SO_NUMBER%" >> InstallConfig.iss
|
2011-01-23 19:57:32 +00:00
|
|
|
|
2013-03-29 16:06:09 +00:00
|
|
|
set DATA_FILE=FlightGear-%FLIGHTGEAR_VERSION%-data
|
2011-01-23 19:57:32 +00:00
|
|
|
|
2013-03-29 16:06:09 +00:00
|
|
|
REM extract the data files
|
2013-10-24 09:27:10 +00:00
|
|
|
7z e -aoa %DATA_FILE%.tar.bz2 && 7z x -aoa %DATA_FILE%.tar
|
2011-01-23 19:57:32 +00:00
|
|
|
|
2013-03-29 16:06:09 +00:00
|
|
|
REM run Inno-setup!
|
2013-11-01 18:02:33 +00:00
|
|
|
REM use iscc instead of compil32 for better error reporting
|
2011-01-23 19:57:32 +00:00
|
|
|
|
2013-11-01 18:02:33 +00:00
|
|
|
iscc FlightGear.iss
|