Changeset 502


Ignore:
Timestamp:
03/02/10 09:30:39 (10 years ago)
Author:
beliar
Message:

Updated the install script and added instructions to create an installer.

Location:
trunk/game/packaging
Files:
1 added
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/game/packaging/windows_packaging.nsi

    r438 r502  
    66!define PRODUCT_UNINST_ROOT_KEY "HKLM" 
    77!define PARPG_DIR ".." 
    8 !define FIFE_DIR "../../.." 
     8!define FIFE_DIR  "E:\projekte\FIFE" ;Needs to be changed if fife is elsewhere obviously 
    99 
    1010; MUI 1.67 compatible ------ 
     
    2222 
    2323; License page 
    24 !insertmacro MUI_PAGE_LICENSE "${PARPG_DIR}\LICENSE" 
     24!insertmacro MUI_PAGE_LICENSE "${PARPG_DIR}\license\gpl30.license" 
    2525; Directory page 
    2626!insertmacro MUI_PAGE_DIRECTORY 
     
    4949;------------ Main. Packages PARPG code -------------- 
    5050Section "PARPG" PARPG 
     51  SectionIn RO 
    5152  SetOutPath "$INSTDIR" 
    5253  SetOverwrite try 
     
    6768  RENAME "README" "README.rtf" 
    6869   
    69   CreateDirectory "$INSTDIR\saves" 
    70    
    71   ;Put all FIFE dependencies in a lib directory 
    72   SetOutPath "$INSTDIR\lib\" 
    73   FILE /r /x ".svn" "${FIFE_DIR}\engine\extensions" 
    74  
    75   FILE "${FIFE_DIR}\engine\swigwrappers\python\fife.py" 
    76   FILE "${FIFE_DIR}\engine\swigwrappers\python\_fife.pyd" 
    77   FILE "${FIFE_DIR}\engine\swigwrappers\python\*dll" 
     70  CreateDirectory "$INSTDIR\saves"   
    7871   
    7972  SetAutoClose true 
     
    155148  SetAutoClose true 
    156149SectionEnd 
    157  
     150SectionGroup Externals 
    158151;---------- DOWNLOAD PYTHON ------- 
    159152Section "ActivePython (required)" Python 
     
    173166  Delete $TEMP\pysetup.msi 
    174167SectionEnd 
    175  
     168;------------FIFE------------------- 
     169Section "FIFE (required)" FIFE 
     170  SetDetailsPrint textonly 
     171 
     172  SetOutPath "$TEMP" 
     173  ;Get all the core PARPG files 
     174  FILE /r "${FIFE_DIR}\dist\fife-0.3.0.win32.exe" 
     175  DetailPrint "Installing FIFE" 
     176  ExecWait "$TEMP\fife-0.3.0.win32.exe" 
     177 
     178  DetailPrint "Deleting FIFE installer" 
     179  Delete "$TEMP\fife-0.3.0.win32.exe" 
     180SectionEnd 
    176181;------------ PyYAML -------------- 
    177182Section "PyYAML (required)" PyYAML 
     
    212217SectionEnd 
    213218;--------- SECTION END ------------ 
    214  
     219SectionGroupEnd 
    215220LangString DESC_PARPG ${LANG_ENGLISH} "PARPG - The game code" 
    216221LangString DESC_Python ${LANG_ENGLISH} "ActivePython 2.6.4.8 - Required to run PARPG. Requires an active internet connection to install." 
     222LangString DESC_FIFE ${LANG_ENGLISH} "FIFE 0.3.0 SVN - Required to run PARPG." 
    217223LangString DESC_PyYAML ${LANG_ENGLISH} "PyYAML 3.09 - Required Python Module. Requires an active internet connection to install." 
    218224LangString DESC_OpenAL ${LANG_ENGLISH} "OpenAL - Required for sound and music" 
     
    221227  !insertmacro MUI_DESCRIPTION_TEXT ${PARPG} $(DESC_PARPG) 
    222228  !insertmacro MUI_DESCRIPTION_TEXT ${Python} $(DESC_Python) 
     229  !insertmacro MUI_DESCRIPTION_TEXT ${FIFE} $(DESC_FIFE) 
    223230  !insertmacro MUI_DESCRIPTION_TEXT ${PyYAML} $(DESC_PyYAML) 
    224231  !insertmacro MUI_DESCRIPTION_TEXT ${OpenAL} $(DESC_OpenAL) 
Note: See TracChangeset for help on using the changeset viewer.