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 "..\..\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,6 +102,8 @@ SectionGroup /e "Mods"
|
|||||||
SectionEnd
|
SectionEnd
|
||||||
Section "Download content" RA_Content
|
Section "Download content" RA_Content
|
||||||
AddSize 10137
|
AddSize 10137
|
||||||
|
IfFileExists "$INSTDIR\mods\ra\packages\redalert.mix" done dlcontent
|
||||||
|
dlcontent:
|
||||||
SetOutPath "$OUTDIR\packages"
|
SetOutPath "$OUTDIR\packages"
|
||||||
NSISdl::download http://open-ra.org/packages/ra-packages.zip ra-packages.zip
|
NSISdl::download http://open-ra.org/packages/ra-packages.zip ra-packages.zip
|
||||||
Pop $R0
|
Pop $R0
|
||||||
@@ -112,6 +111,7 @@ SectionGroup /e "Mods"
|
|||||||
Abort
|
Abort
|
||||||
ZipDLL::extractall "ra-packages.zip" "$OUTDIR"
|
ZipDLL::extractall "ra-packages.zip" "$OUTDIR"
|
||||||
Delete ra-packages.zip
|
Delete ra-packages.zip
|
||||||
|
done:
|
||||||
SectionEnd
|
SectionEnd
|
||||||
SectionGroupEnd
|
SectionGroupEnd
|
||||||
SectionGroup "Command & Conquer" CNC
|
SectionGroup "Command & Conquer" CNC
|
||||||
@@ -122,6 +122,8 @@ SectionGroup /e "Mods"
|
|||||||
SectionEnd
|
SectionEnd
|
||||||
Section "Download content" CNC_Content
|
Section "Download content" CNC_Content
|
||||||
AddSize 9431
|
AddSize 9431
|
||||||
|
IfFileExists "$INSTDIR\mods\cnc\packages\conquer.mix" done dlcontent
|
||||||
|
dlcontent:
|
||||||
SetOutPath "$OUTDIR\packages"
|
SetOutPath "$OUTDIR\packages"
|
||||||
NSISdl::download http://open-ra.org/packages/cnc-packages.zip cnc-packages.zip
|
NSISdl::download http://open-ra.org/packages/cnc-packages.zip cnc-packages.zip
|
||||||
Pop $R0
|
Pop $R0
|
||||||
@@ -129,6 +131,7 @@ SectionGroup /e "Mods"
|
|||||||
Abort
|
Abort
|
||||||
ZipDLL::extractall "cnc-packages.zip" "$OUTDIR"
|
ZipDLL::extractall "cnc-packages.zip" "$OUTDIR"
|
||||||
Delete cnc-packages.zip
|
Delete cnc-packages.zip
|
||||||
|
done:
|
||||||
SectionEnd
|
SectionEnd
|
||||||
SectionGroupEnd
|
SectionGroupEnd
|
||||||
SectionGroup "Red Alert: Aftermath" Aftermath
|
SectionGroup "Red Alert: Aftermath" Aftermath
|
||||||
@@ -138,6 +141,8 @@ SectionGroup /e "Mods"
|
|||||||
SectionEnd
|
SectionEnd
|
||||||
Section "Download content" AM_Content
|
Section "Download content" AM_Content
|
||||||
AddSize 5941
|
AddSize 5941
|
||||||
|
IfFileExists "$INSTDIR\mods\aftermath\packages\hires1.mix" done dlcontent
|
||||||
|
dlcontent:
|
||||||
SetOutPath "$OUTDIR\packages"
|
SetOutPath "$OUTDIR\packages"
|
||||||
NSISdl::download http://open-ra.org/packages/aftermath-packages.zip aftermath-packages.zip
|
NSISdl::download http://open-ra.org/packages/aftermath-packages.zip aftermath-packages.zip
|
||||||
Pop $R0
|
Pop $R0
|
||||||
@@ -145,6 +150,7 @@ SectionGroup /e "Mods"
|
|||||||
Abort
|
Abort
|
||||||
ZipDLL::extractall "aftermath-packages.zip" "$OUTDIR"
|
ZipDLL::extractall "aftermath-packages.zip" "$OUTDIR"
|
||||||
Delete aftermath-packages.zip
|
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
|
||||||
;***************************
|
;***************************
|
||||||
|
|||||||
Reference in New Issue
Block a user