diff options
author | Bjørn Lindeijer <bjorn@lindeijer.nl> | 2009-05-13 23:36:52 +0200 |
---|---|---|
committer | Bjørn Lindeijer <bjorn@lindeijer.nl> | 2009-05-13 23:36:52 +0200 |
commit | 7d8b9e21f6ea005d10827ae32e901d722ec08847 (patch) | |
tree | 01e8defd1ae771137f3eddf7b0d8fbf5f5e8cd10 | |
parent | 2f3485d63c348767a12f21c25933aabeb93b59a3 (diff) | |
download | mana-7d8b9e21f6ea005d10827ae32e901d722ec08847.tar.gz mana-7d8b9e21f6ea005d10827ae32e901d722ec08847.tar.bz2 mana-7d8b9e21f6ea005d10827ae32e901d722ec08847.tar.xz mana-7d8b9e21f6ea005d10827ae32e901d722ec08847.zip |
Dynamically download the music when selected
This way we don't need to include the music in each Windows installer,
and people can avoid the extra megabytes when they don't care about the
music.
Patch provided by QOAL.
-rw-r--r-- | packaging/windows/setup.nsi | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/packaging/windows/setup.nsi b/packaging/windows/setup.nsi index 8dbbcfce..495dda3c 100644 --- a/packaging/windows/setup.nsi +++ b/packaging/windows/setup.nsi @@ -182,10 +182,14 @@ Section "Core files (required)" SecCore File "${SRCDIR}\docs\FAQ.txt" SectionEnd -Section "Music" SecMusic +Section /o "Music" SecMusic + AddSize 17602 CreateDirectory "$INSTDIR\data\music" SetOutPath "$INSTDIR\data\music" - File /nonfatal "${SRCDIR}\data\music\*.ogg" + NSISdl::download "http://downloads.sourceforge.net/themanaworld/tmwmusic-0.2.tar.gz" "$TEMP\tmwmusic-0.2.tar.gz" + ;Requires an additional plugin from http://nsis.sourceforge.net/UnTGZ_plug-in Place untgz.dll in your nsis/plugin dir + untgz::extract -j -d "$INSTDIR\data\music" "$TEMP\tmwmusic-0.2.tar.gz" + Delete "$TEMP\tmwmusic-0.2.tar.gz" SectionEnd Section "Translations" SecTrans @@ -196,7 +200,7 @@ 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 ${SecMusic} "Background music. (If selected the music will be downloaded from the internet.)" !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 |