16bc276063
git-svn-id: https://svn.code.sf.net/p/speed-dreams/code/trunk@4448 30fe4595-0a0c-4342-8851-515496e4dcbd Former-commit-id: 3d5df50160eb516d3912394f0ed402b7643dea25 Former-commit-id: a944f65f47a04730cb77e1d11ba36466a79c1051
238 lines
8.3 KiB
Text
238 lines
8.3 KiB
Text
;
|
|
; Windows NSIS configuration file for the "WIP cars and tracks" installer
|
|
; (remaining cars and tracks that don't fit into the "HQ cars and tracks (i)" packages,
|
|
; because of lower quality graphics, unfinished AI support, ...)
|
|
;
|
|
; copyright : (C) 2011 onwards Jean-Philippe Meuret
|
|
; $Id$
|
|
;
|
|
; This program is free software; you can redistribute it and/or modify
|
|
; it under the terms of the GNU General Public License as published by
|
|
; the Free Software Foundation; either version 2 of the License, or
|
|
; (at your option) any later version.
|
|
|
|
; Common definitions.
|
|
!include "speed-dreams.nsh"
|
|
|
|
; MUI Settings
|
|
!define MUI_WELCOMEPAGE_TITLE "${GAME_NAME}\n ${GAME_SUBTITLE}\nMore tracks, cars and AI drivers (WIP)"
|
|
!define MUI_WELCOMEPAGE_TITLE_3LINES
|
|
|
|
; Installer pages
|
|
;Page custom EnterXXXPage LeaveXXXPage
|
|
!insertmacro MUI_PAGE_WELCOME
|
|
!insertmacro MUI_PAGE_INSTFILES
|
|
|
|
; Language files (Warning: Can't be upper in the script)
|
|
!insertmacro MUI_LANGUAGE "English"
|
|
!insertmacro MUI_LANGUAGE "Dutch"
|
|
!insertmacro MUI_LANGUAGE "Danish"
|
|
!insertmacro MUI_LANGUAGE "Swedish"
|
|
!insertmacro MUI_LANGUAGE "Finnish"
|
|
!insertmacro MUI_LANGUAGE "Norwegian"
|
|
!insertmacro MUI_LANGUAGE "German"
|
|
!insertmacro MUI_LANGUAGE "French"
|
|
!insertmacro MUI_LANGUAGE "Spanish"
|
|
!insertmacro MUI_LANGUAGE "Italian"
|
|
!insertmacro MUI_LANGUAGE "Russian"
|
|
!insertmacro MUI_LANGUAGE "Polish"
|
|
!insertmacro MUI_LANGUAGE "Czech"
|
|
!insertmacro MUI_LANGUAGE "Slovak"
|
|
!insertmacro MUI_LANGUAGE "Hungarian"
|
|
!insertmacro MUI_LANGUAGE "Romanian"
|
|
!insertmacro MUI_LANGUAGE "Greek"
|
|
!insertmacro MUI_LANGUAGE "Turkish"
|
|
!insertmacro MUI_LANGUAGE "Arabic"
|
|
!insertmacro MUI_LANGUAGE "Farsi"
|
|
!insertmacro MUI_LANGUAGE "Japanese"
|
|
!insertmacro MUI_LANGUAGE "SimpChinese"
|
|
|
|
; Global installer settings.
|
|
Name "${GAME_VERSIONNED_NAME}"
|
|
Caption "Install WIP tracks, cars & AI drivers for ${GAME_VERSIONNED_NAME}"
|
|
OutFile "speed-dreams-${WIPCARSTRACKS_SETUP_KEY}-${GAME_LONG_VERSION}-win32-setup.exe"
|
|
InstallDir "$PROGRAMFILES\${INST_INST_DIR_SUFFIX}" ; TODO: Detect base package install dir
|
|
InstallDirRegKey ${GAME_ROOT_REGKEY} "${GAME_DIR_REGKEY}" ""
|
|
ShowInstDetails show
|
|
ShowUnInstDetails show
|
|
|
|
Section -CoreData
|
|
|
|
SetOverwrite on
|
|
|
|
; Game core data files (racemanagers, ...)
|
|
SetOutPath "$INSTDIR\data\config\raceman"
|
|
File "${BUILD_INST_DIR}\data\config\raceman\singleevent-mp5.xml"
|
|
File "${BUILD_INST_DIR}\data\config\raceman\championship.xml"
|
|
File "${BUILD_INST_DIR}\data\config\raceman\championship-supercars.xml"
|
|
|
|
SectionEnd
|
|
|
|
Section -Drivers
|
|
|
|
SetOverwrite on
|
|
|
|
; Robots binaries
|
|
SetOutPath "$INSTDIR\lib\drivers\simplix_mp5"
|
|
File /r /x *.lib "${BUILD_INST_DIR}\lib\drivers\simplix_mp5\*.*"
|
|
|
|
SetOutPath "$INSTDIR\lib\drivers\simplix_ls2"
|
|
File /r /x *.lib "${BUILD_INST_DIR}\lib\drivers\simplix_ls2\*.*"
|
|
|
|
SetOutPath "$INSTDIR\lib\drivers\usr_ls2"
|
|
File /r /x *.lib "${BUILD_INST_DIR}\lib\drivers\usr_ls2\*.*"
|
|
|
|
; Robots data files (car and track setups)
|
|
SetOutPath "$INSTDIR\data\drivers\simplix_mp5"
|
|
File /r "${BUILD_INST_DIR}\data\drivers\simplix_mp5\*.*"
|
|
|
|
SetOutPath "$INSTDIR\data\drivers\simplix_ls2"
|
|
File /r "${BUILD_INST_DIR}\data\drivers\simplix_ls2\*.*"
|
|
|
|
SetOutPath "$INSTDIR\data\drivers\usr_ls2"
|
|
File /r "${BUILD_INST_DIR}\data\drivers\usr_ls2\*.*"
|
|
|
|
SectionEnd
|
|
|
|
; Lower quality / not AI-driven / work-in-progress car models
|
|
Section -Cars
|
|
|
|
SetOverwrite on
|
|
|
|
SetOutPath "$INSTDIR\data\cars\mp5-fmc"
|
|
File /r "${BUILD_INST_DIR}\data\cars\mp5-fmc\*.*"
|
|
|
|
SetOutPath "$INSTDIR\data\cars\mp5-fmc-drift"
|
|
File /r "${BUILD_INST_DIR}\data\cars\mp5-fmc-drift\*.*"
|
|
|
|
SetOutPath "$INSTDIR\data\cars\mp5-fmc-speedy"
|
|
File /r "${BUILD_INST_DIR}\data\cars\mp5-fmc-speedy\*.*"
|
|
|
|
SetOutPath "$INSTDIR\data\cars\rs1-citrus-cs4"
|
|
File /r "${BUILD_INST_DIR}\data\cars\rs1-citrus-cs4\*.*"
|
|
|
|
SetOutPath "$INSTDIR\data\cars\rs1-fmc-centre"
|
|
File /r "${BUILD_INST_DIR}\data\cars\rs1-fmc-centre\*.*"
|
|
|
|
SetOutPath "$INSTDIR\data\cars\rs1-kenji-08"
|
|
File /r "${BUILD_INST_DIR}\data\cars\rs1-kenji-08\*.*"
|
|
|
|
SetOutPath "$INSTDIR\data\cars\rs2-fai-dot"
|
|
File /r "${BUILD_INST_DIR}\data\cars\rs2-fai-dot\*.*"
|
|
|
|
SetOutPath "$INSTDIR\data\cars\rs2-lion-2m"
|
|
File /r "${BUILD_INST_DIR}\data\cars\rs2-lion-2m\*.*"
|
|
|
|
SetOutPath "$INSTDIR\data\cars\ls2-bavaria-g3gtr"
|
|
File /r "${BUILD_INST_DIR}\data\cars\ls2-bavaria-g3gtr\*.*"
|
|
|
|
SetOutPath "$INSTDIR\data\cars\ls2-boxer-96rsr"
|
|
File /r "${BUILD_INST_DIR}\data\cars\ls2-boxer-96rsr\*.*"
|
|
|
|
SetOutPath "$INSTDIR\data\cars\ls2-cavallo-360r"
|
|
File /r "${BUILD_INST_DIR}\data\cars\ls2-cavallo-360r\*.*"
|
|
|
|
SetOutPath "$INSTDIR\data\cars\ls2-condor-c400r"
|
|
File /r "${BUILD_INST_DIR}\data\cars\ls2-condor-c400r\*.*"
|
|
|
|
SetOutPath "$INSTDIR\data\cars\ls2-lynx-xkr"
|
|
File /r "${BUILD_INST_DIR}\data\cars\ls2-lynx-xkr\*.*"
|
|
|
|
SetOutPath "$INSTDIR\data\cars\ls2-morley-r900"
|
|
File /r "${BUILD_INST_DIR}\data\cars\ls2-morley-r900\*.*"
|
|
|
|
SetOutPath "$INSTDIR\data\cars\ls2-sprite-gts"
|
|
File /r "${BUILD_INST_DIR}\data\cars\ls2-sprite-gts\*.*"
|
|
|
|
SetOutPath "$INSTDIR\data\cars\ls2-vortex-gt"
|
|
File /r "${BUILD_INST_DIR}\data\cars\ls2-vortex-gt\*.*"
|
|
|
|
SectionEnd
|
|
|
|
Section -Tracks
|
|
|
|
SetOverwrite on
|
|
|
|
; Lower quality / work-in-progress tracks
|
|
SetOutPath "$INSTDIR\data\tracks\circuit\goldstone-sand"
|
|
File /r "${BUILD_INST_DIR}\data\tracks\circuit\goldstone-sand\*.*"
|
|
|
|
SetOutPath "$INSTDIR\data\tracks\road\e-track-2"
|
|
File /r "${BUILD_INST_DIR}\data\tracks\road\e-track-2\*.*"
|
|
|
|
SetOutPath "$INSTDIR\data\tracks\road\e-track-3"
|
|
File /r "${BUILD_INST_DIR}\data\tracks\road\e-track-3\*.*"
|
|
|
|
SetOutPath "$INSTDIR\data\tracks\road\e-track-4"
|
|
File /r "${BUILD_INST_DIR}\data\tracks\road\e-track-4\*.*"
|
|
|
|
SetOutPath "$INSTDIR\data\tracks\road\spring"
|
|
File /r "${BUILD_INST_DIR}\data\tracks\road\spring\*.*"
|
|
|
|
SetOutPath "$INSTDIR\data\tracks\road\street-1"
|
|
File /r "${BUILD_INST_DIR}\data\tracks\road\street-1\*.*"
|
|
|
|
SetOutPath "$INSTDIR\data\tracks\road\wheel-1"
|
|
File /r "${BUILD_INST_DIR}\data\tracks\road\wheel-1\*.*"
|
|
|
|
SetOutPath "$INSTDIR\data\tracks\dirt\dirt-1"
|
|
File /r "${BUILD_INST_DIR}\data\tracks\dirt\dirt-1\*.*"
|
|
|
|
SetOutPath "$INSTDIR\data\tracks\dirt\dirt-2"
|
|
File /r "${BUILD_INST_DIR}\data\tracks\dirt\dirt-2\*.*"
|
|
|
|
SetOutPath "$INSTDIR\data\tracks\dirt\dirt-4"
|
|
File /r "${BUILD_INST_DIR}\data\tracks\dirt\dirt-4\*.*"
|
|
|
|
SetOutPath "$INSTDIR\data\tracks\dirt\dirt-6"
|
|
File /r "${BUILD_INST_DIR}\data\tracks\dirt\dirt-6\*.*"
|
|
|
|
SetOutPath "$INSTDIR\data\tracks\dirt\mixed-1"
|
|
File /r "${BUILD_INST_DIR}\data\tracks\dirt\mixed-1\*.*"
|
|
|
|
SetOutPath "$INSTDIR\data\tracks\dirt\mixed-2"
|
|
File /r "${BUILD_INST_DIR}\data\tracks\dirt\mixed-2\*.*"
|
|
|
|
SetOutPath "$INSTDIR\data\tracks\speedway\a-speedway"
|
|
File /r "${BUILD_INST_DIR}\data\tracks\speedway\a-speedway\*.*"
|
|
|
|
SetOutPath "$INSTDIR\data\tracks\speedway\b-speedway"
|
|
File /r "${BUILD_INST_DIR}\data\tracks\speedway\b-speedway\*.*"
|
|
|
|
SetOutPath "$INSTDIR\data\tracks\speedway\c-speedway"
|
|
File /r "${BUILD_INST_DIR}\data\tracks\speedway\c-speedway\*.*"
|
|
|
|
SetOutPath "$INSTDIR\data\tracks\speedway\caddo"
|
|
File /r "${BUILD_INST_DIR}\data\tracks\speedway\caddo\*.*"
|
|
|
|
SetOutPath "$INSTDIR\data\tracks\speedway\d-speedway"
|
|
File /r "${BUILD_INST_DIR}\data\tracks\speedway\d-speedway\*.*"
|
|
|
|
SetOutPath "$INSTDIR\data\tracks\speedway\e-speedway"
|
|
File /r "${BUILD_INST_DIR}\data\tracks\speedway\e-speedway\*.*"
|
|
|
|
SetOutPath "$INSTDIR\data\tracks\speedway\e-track-5"
|
|
File /r "${BUILD_INST_DIR}\data\tracks\speedway\e-track-5\*.*"
|
|
|
|
SetOutPath "$INSTDIR\data\tracks\speedway\f-speedway"
|
|
File /r "${BUILD_INST_DIR}\data\tracks\speedway\f-speedway\*.*"
|
|
|
|
SetOutPath "$INSTDIR\data\tracks\speedway\longpond"
|
|
File /r "${BUILD_INST_DIR}\data\tracks\speedway\longpond\*.*"
|
|
|
|
SetOutPath "$INSTDIR\data\tracks\speedway\sunshine"
|
|
File /r "${BUILD_INST_DIR}\data\tracks\speedway\sunshine\*.*"
|
|
|
|
SetOutPath "$INSTDIR\data\tracks\speedway\tennessee"
|
|
File /r "${BUILD_INST_DIR}\data\tracks\speedway\tennessee\*.*"
|
|
|
|
SectionEnd
|
|
|
|
; This function is called at installer startup.
|
|
Function .onInit
|
|
|
|
; Check if the base package is installed and OK, and abort if not.
|
|
!insertmacro CheckIfBasePackageInstalled
|
|
|
|
FunctionEnd
|
|
|