Changeset - r14105:c5f56a8d1311
[Not reviewed]
master
0 0 8
orudge - 14 years ago 2009-12-30 02:23:10
orudge@openttd.org
(svn r18662) -Feature: Add WarpIN-based installer for OS/2
8 files changed with 299 insertions and 0 deletions:
0 comments (0 inline, 0 general)
os/os2/installer/download_nosound.cmd
Show inline comments
 
new file 100644
 
@echo off
 
if "%1" == "" goto err
 
if "%2" == "" goto err
 

	
 
echo Downloading NoSound...
 

	
 
%1\wget http://binaries.openttd.org/installer/nosound-NOSOUND_VERSION.7z -O %2/data/nosound.7z
 

	
 
echo Extracting NoSound...
 

	
 
%1\7za x -y -O%2/data %2/data/nosound.7z
 
del %1\data\nosound.7z /n
 

	
 
echo NoSound has been installed.
 
goto end
 

	
 
:err
 
echo This batch file is only intended for use by the OpenTTD installer.
 
echo Please visit www.openttd.org for details on downloading NoSound.
 

	
 
:end
 
\ No newline at end of file
os/os2/installer/download_opengfx.cmd
Show inline comments
 
new file 100644
 
@echo off
 
if "%1" == "" goto err
 
if "%2" == "" goto err
 

	
 
echo Downloading OpenGFX...
 

	
 
%1\wget http://binaries.openttd.org/installer/opengfx-OPENGFX_VERSION.7z -O %2/data/opengfx.7z
 

	
 
echo Extracting OpenGFX...
 

	
 
%1\7za x -y -O%2/data %2/data/opengfx.7z
 
del %1\data\opengfx.7z /n
 

	
 
echo OpenGFX has been installed.
 
goto end
 

	
 
:err
 
echo This batch file is only intended for use by the OpenTTD installer.
 
echo Please visit www.openttd.org for details on downloading OpenGFX.
 

	
 
:end
os/os2/installer/download_opensfx.cmd
Show inline comments
 
new file 100644
 
@echo off
 
if "%1" == "" goto err
 
if "%2" == "" goto err
 

	
 
echo Downloading OpenSFX...
 

	
 
%1\wget http://binaries.openttd.org/installer/opensfx-OPENSFX_VERSION.7z -O %2/data/opensfx.7z
 

	
 
echo Extracting OpenSFX...
 

	
 
%1\7za x -y -O%2/data %2/data/opensfx.7z
 
del %1\data\opensfx.7z /n
 

	
 
echo OpenSFX has been installed.
 
goto end
 

	
 
:err
 
echo This batch file is only intended for use by the OpenTTD installer.
 
echo Please visit www.openttd.org for details on downloading OpenSFX.
 

	
 
:end
os/os2/installer/make_installer.cmd
Show inline comments
 
new file 100644
 
@echo off
 

	
 
set OPENTTD_VERSION=1.0.0-beta1
 
set OPENSFX_VERSION=0.8.0
 
set NOSOUND_VERSION=0.8.0
 
set OPENGFX_VERSION=0.7.0
 

	
 
echo To make the installer, you must have the WarpIN compiler (wic) installed and in
 
echo your path, as well as wget and unzip. This file will download the various DLLs
 
echo to be distributed with the installer. If you do not want to continue, please
 
echo press CTRL-C now.
 
echo.
 
pause
 

	
 
cd ..\..\..\bundle
 

	
 
if not exist SDL12.dll goto getsdl
 
if not exist FSLib.dll goto getsdl
 
goto libc
 

	
 
:getsdl
 

	
 
wget http://www.os2site.com/sw/dev/sdl/sdl-1.2.10-bin-20080804.zip -O dl.zip
 
unzip -j dl.zip SDL/FSLib.dll SDL/SDL12.dll
 
del dl.zip
 

	
 
:libc
 

	
 
if exist libc063.dll goto gcc
 

	
 
wget ftp://ftp.netlabs.org/pub/gcc/libc-0.6.3-csd3.zip -O dl.zip
 
unzip -j dl.zip libc063.dll
 
del dl.zip
 

	
 
:gcc
 

	
 
if exist gcc442.dll goto tools
 

	
 
wget http://www.owenrudge.net/various/gcc442.zip -O dl.zip
 
unzip -j dl.zip gcc442.dll
 
del dl.zip
 

	
 
:tools
 

	
 
cd ..\os\os2\installer
 
if exist tools goto opengfx
 

	
 
mkdir tools
 
cd tools
 

	
 
wget http://download.smedley.info/wget-1.11.4-os2-20090315.zip -O dl.zip
 
unzip -j dl.zip wget/bin/wget.exe
 
del dl.zip
 

	
 
wget ftp://ftp.os4.su/moveton/p7zip-9.04-bin-os2.zip -O dl.zip
 
unzip -j dl.zip bin/7za.exe dll/ilibca.dll
 
del dl.zip
 

	
 
cd ..
 

	
 
:opengfx
 

	
 
if exist opengfx goto opensfx
 

	
 
mkdir opengfx
 
sed s/OPENGFX_VERSION/%OPENGFX_VERSION%/ < download_opengfx.cmd > opengfx\download_opengfx.cmd
 
copy remove_opengfx.cmd opengfx
 

	
 
:opensfx
 
if exist opensfx goto nosound
 

	
 
mkdir opensfx
 
sed s/OPENSFX_VERSION/%OPENSFX_VERSION%/ < download_opensfx.cmd > opensfx\download_opensfx.cmd
 
copy remove_opensfx.cmd opensfx
 

	
 
:nosound
 

	
 
mkdir nosound
 
sed s/NOSOUND_VERSION/%NOSOUND_VERSION%/ < download_nosound.cmd > nosound\download_nosound.cmd
 
copy remove_nosound.cmd nosound
 

	
 
:end
 

	
 
if exist openttd-%OPENTTD_VERSION%-os2.exe del openttd-%OPENTTD_VERSION%-os2.exe
 
wic -a openttd-%OPENTTD_VERSION%-os2.exe 1 -c../../../bundle -r * 2 -ctools -r * 3 -copengfx -r * 4 -copensfx -r * 5 -cnosound -r * -U -s openttd.wis
os/os2/installer/openttd.wis
Show inline comments
 
new file 100644
 
<WARPIN>
 
<HEAD>
 
<TITLE>OpenTTD</TITLE>
 

	
 
<!-- Please remember to increment the build number for each package
 
     when releasing a new stable version, particularly if there are
 
     also release candidates sharing the major/minor versions:
 

	
 
     e.g., 0\7\1\16279 for 0.7.1-RC1,
 
           0\7\1\16365 for 0.7.1-RC2,
 
           0\7\1\16540 for 0.7.1 final
 
-->
 

	
 
<PCK INDEX="1"
 
      PACKAGEID="OpenTTD\OpenTTD\OpenTTD\1\0\0\18862"
 
      TARGET="$(WARPIN_DEFAULTAPPSPATH)\OpenTTD"
 
      SELECT
 
      TITLE="OpenTTD"
 
      LONGFILENAMES
 
      BASE
 
      >OpenTTD is an open source transport simulation game</PCK>
 

	
 
<PCK INDEX="2"
 
      PACKAGEID="OpenTTD\OpenTTD\Downloader\1\0\0\18862"
 
      TARGET="$(WARPIN_DEFAULTAPPSPATH)\OpenTTD"
 
      SELECT
 
      TITLE="Download tools"
 
      REQUIRES=1
 
      FIXED
 
      >Tools required for downloading the OpenGFX/SFX packs</PCK>
 

	
 
<PCK INDEX="3"
 
      PACKAGEID="OpenTTD\OpenTTD\OpenGFX\1\0\0\18862"
 
      TARGET="$(WARPIN_DEFAULTAPPSPATH)\OpenTTD"
 
      SELECT
 
      TITLE="OpenGFX"
 
      LONGFILENAMES
 
      REQUIRES=2
 
      EXECUTE="$(3)\download_opengfx.cmd | $(1) $(/1)"
 
      DEEXECUTE="$(3)\remove_opengfx.cmd | $(1) $(/1)"
 
      FIXED
 
      >Downloads the OpenGFX graphics pack for OpenTTD</PCK>
 

	
 
<PCK INDEX="4"
 
      PACKAGEID="OpenTTD\OpenTTD\OpenSFX\1\0\0\18862"
 
      TARGET="$(WARPIN_DEFAULTAPPSPATH)\OpenTTD"
 
      SELECT
 
      TITLE="OpenSFX"
 
      LONGFILENAMES
 
      REQUIRES=2
 
      EXECUTE="$(4)\download_opensfx.cmd | $(1) $(/1)"
 
      DEEXECUTE="$(4)\remove_opensfx.cmd | $(1) $(/1)"
 
      FIXED
 
      >Downloads the OpenSFX sound effects pack for OpenTTD</PCK>
 

	
 
<PCK INDEX="5"
 
      PACKAGEID="OpenTTD\OpenTTD\NoSound\1\0\0\18862"
 
      TARGET="$(WARPIN_DEFAULTAPPSPATH)\OpenTTD"
 
      SELECT
 
      TITLE="NoSound"
 
      LONGFILENAMES
 
      REQUIRES=2
 
      EXECUTE="$(5)\download_nosound.cmd | $(1) $(/1)"
 
      DEEXECUTE="$(5)\remove_nosound.cmd | $(1) $(/1)"
 
      FIXED
 
      >Downloads the NoSound pack for OpenTTD, to disable sound effects</PCK>
 

	
 
</HEAD>
 

	
 
<BODY>
 
<!-- page 1: introductory page -->
 
<PAGE INDEX="1" TYPE="README">
 
<NEXTBUTTON TARGET=2>~Next</NEXTBUTTON>
 
<README EXTRACTFROMPCK="1">README.TXT</README>
 
<TEXT>Welcome to the OpenTTD installer. This program will install OpenTTD 1.0 on your system. Before we begin the installation process, please take a moment to read the following document.
 

	
 
Select "Next" to continue, or "Cancel" to abort installation.</TEXT>
 
</PAGE>
 

	
 
<!-- page 2: licence page -->
 
<PAGE INDEX="2" TYPE="README">
 
<NEXTBUTTON TARGET=3>~Next</NEXTBUTTON>
 
<README EXTRACTFROMPCK="1">COPYING</README>
 
<TEXT>OpenTTD is licenced under the GNU General Public License. The text of the licence is below.
 

	
 
Select "Next" if you agree to this licence.
 
Select "Cancel" to abort installation.</TEXT>
 
</PAGE>
 

	
 
<!-- The TYPE=CONTAINER will list the packages which can be installed. -->
 
<PAGE INDEX="3" TYPE="CONTAINER">
 
<NEXTBUTTON TARGET="4">~Next</NEXTBUTTON>
 
<TEXT>On this page, you may choose which components to install. If you don't own Transport Tycoon Deluxe, you will need to download OpenGFX (3MiB) and OpenSFX (10MiB).</TEXT>
 
</PAGE>
 

	
 
<!-- Display another TEXT page to inform the user
 
         that installation will begin. We use the TARGET=0
 
        with the NEXTBUTTON tag which starts installation. -->
 

	
 
<PAGE INDEX="4" TYPE="TEXT">
 
<NEXTBUTTON TARGET="0">I~nstall</NEXTBUTTON>
 
<TEXT>
 
Press "Install" to begin installing OpenTTD.</TEXT>
 
</PAGE>
 
</BODY>
 
</WARPIN>
os/os2/installer/remove_nosound.cmd
Show inline comments
 
new file 100644
 
@echo off
 
if "%1" == "" goto err
 

	
 
echo Removing NoSound...
 

	
 
del %1\data\nosound\*.* /n
 
rmdir %1\data\nosound
 

	
 
echo NoSound has been removed.
 
goto end
 

	
 
:err
 
echo This batch file is only intended for use by the OpenTTD installer.
 

	
 
:end
os/os2/installer/remove_opengfx.cmd
Show inline comments
 
new file 100644
 
@echo off
 
if "%1" == "" goto err
 

	
 
echo Removing OpenGFX...
 

	
 
del %1\data\opengfx\*.* /n
 
rmdir %1\data\opengfx
 

	
 
echo OpenGFX has been removed.
 
goto end
 

	
 
:err
 
echo This batch file is only intended for use by the OpenTTD installer.
 

	
 
:end
os/os2/installer/remove_opensfx.cmd
Show inline comments
 
new file 100644
 
@echo off
 
if "%1" == "" goto err
 

	
 
echo Removing OpenSFX...
 

	
 
del %1\data\opensfx\*.* /n
 
rmdir %1\data\opensfx
 

	
 
echo OpenSFX has been removed.
 
goto end
 

	
 
:err
 
echo This batch file is only intended for use by the OpenTTD installer.
 

	
 
:end
0 comments (0 inline, 0 general)