Changeset - r18814:72d20c9a91e6
[Not reviewed]
master
0 2 0
rubidium - 13 years ago 2011-12-26 13:21:37
rubidium@openttd.org
(svn r23673) -Codechange: prepare the installers for some (future) massive changes in OpenGFX w.r.t. compatability with earlier versions
2 files changed with 2 insertions and 2 deletions:
0 comments (0 inline, 0 general)
os/os2/installer/make_installer.cmd
Show inline comments
 
@echo off
 

	
 
set OPENTTD_VERSION=1.2.0-beta1
 
set OPENSFX_VERSION=0.8.0
 
set NOSOUND_VERSION=0.8.0
 
set OPENGFX_VERSION=0.7.0
 
set OPENGFX_VERSION=1.2.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
 

	
os/windows/installer/install.nsi
Show inline comments
 
# Version numbers to update
 
!define APPV_MAJOR 1
 
!define APPV_MINOR 2
 
!define APPV_MAINT 0
 
!define APPV_BUILD 0
 
!define APPV_EXTRA "-beta1"
 

	
 
!define APPNAME "OpenTTD"   ; Define application name
 
!define APPVERSION "${APPV_MAJOR}.${APPV_MINOR}.${APPV_MAINT}${APPV_EXTRA}"  ; Define application version
 
!define APPVERSIONINTERNAL "${APPV_MAJOR}.${APPV_MINOR}.${APPV_MAINT}.${APPV_BUILD}" ; Define application version in X.X.X.X
 
!define INSTALLERVERSION ${APPV_MAJOR}${APPV_MINOR}${APPV_MAINT}${APPV_BUILD}
 
!include ${VERSION_INCLUDE}
 

	
 
!define APPURLLINK "http://www.openttd.org"
 
!define APPNAMEANDVERSION "${APPNAME} ${APPVERSION}"
 

	
 
!define OPENGFX_BASE_VERSION "0.7.0"
 
!define OPENGFX_BASE_VERSION "1.2.0"
 
!define OPENSFX_BASE_VERSION "0.8.0"
 
!define OPENMSX_BASE_VERSION "1.0.0"
 

	
 
!define MUI_ICON "..\..\..\media\openttd.ico"
 
!define MUI_UNICON "..\..\..\media\openttd.ico"
 
!define MUI_WELCOMEFINISHPAGE_BITMAP "welcome.bmp"
 
!define MUI_HEADERIMAGE
 
!define MUI_HEADERIMAGE_BITMAP "top.bmp"
 

	
 
BrandingText "OpenTTD Installer"
 
SetCompressor LZMA
 

	
 
; Version Info
 
Var AddWinPrePopulate
 
VIProductVersion "${APPVERSIONINTERNAL}"
 
VIAddVersionKey "ProductName" "OpenTTD ${APPBITS}-bit Installer for Windows ${EXTRA_VERSION}"
 
VIAddVersionKey "Comments" "Installs ${APPNAMEANDVERSION}"
 
VIAddVersionKey "CompanyName" "OpenTTD Developers"
 
VIAddVersionKey "FileDescription" "Installs ${APPNAMEANDVERSION}"
 
VIAddVersionKey "ProductVersion" "${APPVERSION}"
 
VIAddVersionKey "InternalName" "InstOpenTTD-${APPARCH}"
 
VIAddVersionKey "FileVersion" "${APPVERSION}-${APPARCH}"
 
VIAddVersionKey "LegalCopyright" " "
 
; Main Install settings
 
Name "${APPNAMEANDVERSION} ${APPBITS}-bit for Windows ${EXTRA_VERSION}"
 

	
 
; NOTE: Keep trailing backslash!
 
InstallDirRegKey HKLM "SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\OpenTTD" "Install Folder"
 
OutFile "openttd-${APPVERSION}-${APPARCH}.exe"
 
CRCCheck force
 

	
 
ShowInstDetails show
 
ShowUninstDetails show
 

	
 
RequestExecutionLevel admin
 

	
 
Var SHORTCUTS
 
Var CDDRIVE
 

	
 
; Modern interface settings
 
!include "MUI2.nsh"
 
!include "InstallOptions.nsh"
 
!include "WinVer.nsh"
 

	
 
!define MUI_ABORTWARNING
 
!define MUI_WELCOMEPAGE_TITLE_3LINES
 
!insertmacro MUI_PAGE_WELCOME
 
!insertmacro MUI_PAGE_LICENSE "..\..\..\COPYING"
0 comments (0 inline, 0 general)