summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPhilipp Sehmisch <crush@themanaworld.org>2009-01-28 20:40:34 +0100
committerIra Rice <irarice@gmail.com>2009-01-28 13:00:39 -0700
commitdae13b61cfb64fe5c6a724e2fbbf597846e126d2 (patch)
tree83fbedb30a942d54e4aad7bd94ce3c834da080ef
parented188b6c79d141813441aec59bae7c8a9d251e6d (diff)
downloadmana-dae13b61cfb64fe5c6a724e2fbbf597846e126d2.tar.gz
mana-dae13b61cfb64fe5c6a724e2fbbf597846e126d2.tar.bz2
mana-dae13b61cfb64fe5c6a724e2fbbf597846e126d2.tar.xz
mana-dae13b61cfb64fe5c6a724e2fbbf597846e126d2.zip
Made translations and music optional components when installing on windows.
-rw-r--r--packaging/windows/setup.nsi31
1 files changed, 23 insertions, 8 deletions
diff --git a/packaging/windows/setup.nsi b/packaging/windows/setup.nsi
index 629bcf85..731994b8 100644
--- a/packaging/windows/setup.nsi
+++ b/packaging/windows/setup.nsi
@@ -43,6 +43,8 @@ SetCompressor /SOLID lzma
!insertmacro MUI_PAGE_LICENSE "${SRCDIR}\COPYING"
; Directory page
!insertmacro MUI_PAGE_DIRECTORY
+; Components page
+!insertmacro MUI_PAGE_COMPONENTS
; Instfiles page
!insertmacro MUI_PAGE_INSTFILES
; Finish page
@@ -152,11 +154,9 @@ Section "Core files (required)" SecCore
CreateDirectory "$INSTDIR\data\graphics"
CreateDirectory "$INSTDIR\data\help"
CreateDirectory "$INSTDIR\data\icons"
- CreateDirectory "$INSTDIR\data\music"
CreateDirectory "$INSTDIR\data\graphics\gui"
CreateDirectory "$INSTDIR\data\graphics\images"
CreateDirectory "$INSTDIR\docs"
- CreateDirectory "$INSTDIR\po"
SetOverwrite ifnewer
SetOutPath "$INSTDIR"
@@ -178,16 +178,31 @@ Section "Core files (required)" SecCore
File "${SRCDIR}\data\help\*.txt"
SetOutPath "$INSTDIR\data\icons\"
File "${SRCDIR}\data\icons\aethyra.ico"
- SetOutPath "$INSTDIR\data\music"
- File /nonfatal "${SRCDIR}\data\music\*.ogg"
SetOutPath "$INSTDIR\docs"
File "${SRCDIR}\docs\FAQ.txt"
- SetOutPath "$INSTDIR\po"
- File "${SRCDIR}\po\aethyra.pot"
- File "${SRCDIR}\po\LINGUAS"
- File "${SRCDIR}\po\*.po"
SectionEnd
+Section "Music" SecMusic
+ CreateDirectory "$INSTDIR\data\music"
+ SetOutPath "$INSTDIR\data\music"
+ File /nonfatal "${SRCDIR}\data\music\*.ogg"
+SectionEnd
+
+Section "Translations" SecTrans
+ CreateDirectory "$INSTDIR\translations"
+ SetOutPath "$INSTDIR\translations"
+ File /nonfatal /r "${SRCDIR}\translations"
+SectionEnd
+
+;Package descriptions
+!insertmacro MUI_FUNCTION_DESCRIPTION_BEGIN
+ !insertmacro MUI_DESCRIPTION_TEXT ${SecCore} "The core program files."
+ !insertmacro MUI_DESCRIPTION_TEXT ${SecMusic} "Background music."
+ !insertmacro MUI_DESCRIPTION_TEXT ${SecTrans} "Translations for the user interface into 23 different languages. Uncheck this component to leave it in English."
+!insertmacro MUI_FUNCTION_DESCRIPTION_END
+
+
+
Section -AdditionalIcons
WriteIniStr "$INSTDIR\${PRODUCT_NAME}.url" "InternetShortcut" "URL" "${PRODUCT_WEB_SITE}"
CreateShortCut "$SMPROGRAMS\Aethyra\Website.lnk" "$INSTDIR\${PRODUCT_NAME}.url"