don't download the mixes if you already have them; split cg deps into /releases/windows/cg-win32.zip (1.5M)

This commit is contained in:
Chris Forbes
2010-07-04 10:23:18 +12:00
parent 8d88d73e53
commit 35b6f5c38b

View File

@@ -65,10 +65,7 @@ Section "Client" Client
File "..\..\OpenRA.Game\OpenRA.ico" File "..\..\OpenRA.Game\OpenRA.ico"
File "..\..\thirdparty\Tao\*.dll" File "..\..\thirdparty\Tao\*.dll"
File "cg.dll"
File "cgGL.dll"
!insertmacro MUI_STARTMENU_WRITE_BEGIN Application !insertmacro MUI_STARTMENU_WRITE_BEGIN Application
CreateDirectory "$SMPROGRAMS\$StartMenuFolder" CreateDirectory "$SMPROGRAMS\$StartMenuFolder"
CreateShortCut "$SMPROGRAMS\$StartMenuFolder\OpenRA - Red Alert.lnk" $OUTDIR\OpenRA.Game.exe "" \ CreateShortCut "$SMPROGRAMS\$StartMenuFolder\OpenRA - Red Alert.lnk" $OUTDIR\OpenRA.Game.exe "" \
@@ -105,13 +102,16 @@ SectionGroup /e "Mods"
SectionEnd SectionEnd
Section "Download content" RA_Content Section "Download content" RA_Content
AddSize 10137 AddSize 10137
SetOutPath "$OUTDIR\packages" IfFileExists "$INSTDIR\mods\ra\packages\redalert.mix" done dlcontent
NSISdl::download http://open-ra.org/packages/ra-packages.zip ra-packages.zip dlcontent:
Pop $R0 SetOutPath "$OUTDIR\packages"
StrCmp $R0 "success" +2 NSISdl::download http://open-ra.org/packages/ra-packages.zip ra-packages.zip
Abort Pop $R0
ZipDLL::extractall "ra-packages.zip" "$OUTDIR" StrCmp $R0 "success" +2
Delete ra-packages.zip Abort
ZipDLL::extractall "ra-packages.zip" "$OUTDIR"
Delete ra-packages.zip
done:
SectionEnd SectionEnd
SectionGroupEnd SectionGroupEnd
SectionGroup "Command & Conquer" CNC SectionGroup "Command & Conquer" CNC
@@ -122,13 +122,16 @@ SectionGroup /e "Mods"
SectionEnd SectionEnd
Section "Download content" CNC_Content Section "Download content" CNC_Content
AddSize 9431 AddSize 9431
SetOutPath "$OUTDIR\packages" IfFileExists "$INSTDIR\mods\cnc\packages\conquer.mix" done dlcontent
NSISdl::download http://open-ra.org/packages/cnc-packages.zip cnc-packages.zip dlcontent:
Pop $R0 SetOutPath "$OUTDIR\packages"
StrCmp $R0 "success" +2 NSISdl::download http://open-ra.org/packages/cnc-packages.zip cnc-packages.zip
Abort Pop $R0
ZipDLL::extractall "cnc-packages.zip" "$OUTDIR" StrCmp $R0 "success" +2
Delete cnc-packages.zip Abort
ZipDLL::extractall "cnc-packages.zip" "$OUTDIR"
Delete cnc-packages.zip
done:
SectionEnd SectionEnd
SectionGroupEnd SectionGroupEnd
SectionGroup "Red Alert: Aftermath" Aftermath SectionGroup "Red Alert: Aftermath" Aftermath
@@ -138,13 +141,16 @@ SectionGroup /e "Mods"
SectionEnd SectionEnd
Section "Download content" AM_Content Section "Download content" AM_Content
AddSize 5941 AddSize 5941
SetOutPath "$OUTDIR\packages" IfFileExists "$INSTDIR\mods\aftermath\packages\hires1.mix" done dlcontent
NSISdl::download http://open-ra.org/packages/aftermath-packages.zip aftermath-packages.zip dlcontent:
Pop $R0 SetOutPath "$OUTDIR\packages"
StrCmp $R0 "success" +2 NSISdl::download http://open-ra.org/packages/aftermath-packages.zip aftermath-packages.zip
Abort Pop $R0
ZipDLL::extractall "aftermath-packages.zip" "$OUTDIR" StrCmp $R0 "success" +2
Delete aftermath-packages.zip Abort
ZipDLL::extractall "aftermath-packages.zip" "$OUTDIR"
Delete aftermath-packages.zip
done:
SectionEnd SectionEnd
SectionGroupEnd SectionGroupEnd
SectionGroupEnd SectionGroupEnd
@@ -189,6 +195,19 @@ Section "-Freetype" Freetype
done: done:
SectionEnd SectionEnd
Section "-Cg" Cg
AddSize 1500
SetOutPath "$TEMP"
IfFileExists $INSTDIR\cg.dll done installcg
installcg:
NSISdl::download http://www.open-ra.org/releases/windows/cg-win32.zip cg-win32.zip
Pop $R0
StrCmp $R0 "success" +2
Abort
ZipDLL::extractall "cg-win32.zip" "$INSTDIR"
done:
SectionEnd
;*************************** ;***************************
;Uninstaller Sections ;Uninstaller Sections
;*************************** ;***************************