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:
@@ -66,9 +66,6 @@ Section "Client" Client
|
||||
|
||||
File "..\..\thirdparty\Tao\*.dll"
|
||||
|
||||
File "cg.dll"
|
||||
File "cgGL.dll"
|
||||
|
||||
!insertmacro MUI_STARTMENU_WRITE_BEGIN Application
|
||||
CreateDirectory "$SMPROGRAMS\$StartMenuFolder"
|
||||
CreateShortCut "$SMPROGRAMS\$StartMenuFolder\OpenRA - Red Alert.lnk" $OUTDIR\OpenRA.Game.exe "" \
|
||||
@@ -105,6 +102,8 @@ SectionGroup /e "Mods"
|
||||
SectionEnd
|
||||
Section "Download content" RA_Content
|
||||
AddSize 10137
|
||||
IfFileExists "$INSTDIR\mods\ra\packages\redalert.mix" done dlcontent
|
||||
dlcontent:
|
||||
SetOutPath "$OUTDIR\packages"
|
||||
NSISdl::download http://open-ra.org/packages/ra-packages.zip ra-packages.zip
|
||||
Pop $R0
|
||||
@@ -112,6 +111,7 @@ SectionGroup /e "Mods"
|
||||
Abort
|
||||
ZipDLL::extractall "ra-packages.zip" "$OUTDIR"
|
||||
Delete ra-packages.zip
|
||||
done:
|
||||
SectionEnd
|
||||
SectionGroupEnd
|
||||
SectionGroup "Command & Conquer" CNC
|
||||
@@ -122,6 +122,8 @@ SectionGroup /e "Mods"
|
||||
SectionEnd
|
||||
Section "Download content" CNC_Content
|
||||
AddSize 9431
|
||||
IfFileExists "$INSTDIR\mods\cnc\packages\conquer.mix" done dlcontent
|
||||
dlcontent:
|
||||
SetOutPath "$OUTDIR\packages"
|
||||
NSISdl::download http://open-ra.org/packages/cnc-packages.zip cnc-packages.zip
|
||||
Pop $R0
|
||||
@@ -129,6 +131,7 @@ SectionGroup /e "Mods"
|
||||
Abort
|
||||
ZipDLL::extractall "cnc-packages.zip" "$OUTDIR"
|
||||
Delete cnc-packages.zip
|
||||
done:
|
||||
SectionEnd
|
||||
SectionGroupEnd
|
||||
SectionGroup "Red Alert: Aftermath" Aftermath
|
||||
@@ -138,6 +141,8 @@ SectionGroup /e "Mods"
|
||||
SectionEnd
|
||||
Section "Download content" AM_Content
|
||||
AddSize 5941
|
||||
IfFileExists "$INSTDIR\mods\aftermath\packages\hires1.mix" done dlcontent
|
||||
dlcontent:
|
||||
SetOutPath "$OUTDIR\packages"
|
||||
NSISdl::download http://open-ra.org/packages/aftermath-packages.zip aftermath-packages.zip
|
||||
Pop $R0
|
||||
@@ -145,6 +150,7 @@ SectionGroup /e "Mods"
|
||||
Abort
|
||||
ZipDLL::extractall "aftermath-packages.zip" "$OUTDIR"
|
||||
Delete aftermath-packages.zip
|
||||
done:
|
||||
SectionEnd
|
||||
SectionGroupEnd
|
||||
SectionGroupEnd
|
||||
@@ -189,6 +195,19 @@ Section "-Freetype" Freetype
|
||||
done:
|
||||
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
|
||||
;***************************
|
||||
|
||||
Reference in New Issue
Block a user