mirror of
https://github.com/overte-org/overte.git
synced 2025-07-26 09:18:26 +02:00
Merge pull request #12951 from birarda/feat/installer-special-tutorial
allow download of serverless content for specific campaign
This commit is contained in:
commit
0cc43a95c8
2 changed files with 21 additions and 0 deletions
|
@ -20,6 +20,7 @@ To produce an executable installer on Windows, the following are required:
|
||||||
- [Inetc Plug-in for Nullsoft](http://nsis.sourceforge.net/Inetc_plug-in) - 1.0
|
- [Inetc Plug-in for Nullsoft](http://nsis.sourceforge.net/Inetc_plug-in) - 1.0
|
||||||
- [NSISpcre Plug-in for Nullsoft](http://nsis.sourceforge.net/NSISpcre_plug-in) - 1.0
|
- [NSISpcre Plug-in for Nullsoft](http://nsis.sourceforge.net/NSISpcre_plug-in) - 1.0
|
||||||
- [nsisSlideshow Plug-in for Nullsoft](http://nsis.sourceforge.net/NsisSlideshow_plug-in) - 1.7
|
- [nsisSlideshow Plug-in for Nullsoft](http://nsis.sourceforge.net/NsisSlideshow_plug-in) - 1.7
|
||||||
|
- [Nsisunz plug-in for Nullsoft](http://nsis.sourceforge.net/Nsisunz_plug-in)
|
||||||
|
|
||||||
Run the `package` target to create an executable installer using the Nullsoft Scriptable Install System.
|
Run the `package` target to create an executable installer using the Nullsoft Scriptable Install System.
|
||||||
|
|
||||||
|
|
|
@ -1005,6 +1005,23 @@ Function HandlePostInstallOptions
|
||||||
${EndIf}
|
${EndIf}
|
||||||
FunctionEnd
|
FunctionEnd
|
||||||
|
|
||||||
|
Function OptionallyDownloadCampaignServerless
|
||||||
|
${If} $CampaignName != ""
|
||||||
|
InitPluginsDir
|
||||||
|
|
||||||
|
NSISdl::download_quiet http://cdn.highfidelity.com/installer/serverless/$CampaignName.zip $PLUGINSDIR\$CampaignName.zip
|
||||||
|
|
||||||
|
${If} ${FileExists} $PLUGINSDIR\$CampaignName.zip
|
||||||
|
; replace the installed serverless content with the campaign content
|
||||||
|
|
||||||
|
RMDir /r "$INSTDIR\resources\serverless"
|
||||||
|
CreateDirectory "$INSTDIR\resources\serverless"
|
||||||
|
nsisunz::Unzip "$PLUGINSDIR\$CampaignName.zip" "$INSTDIR\resources\serverless"
|
||||||
|
${EndIf}
|
||||||
|
|
||||||
|
${Endif}
|
||||||
|
FunctionEnd
|
||||||
|
|
||||||
;--------------------------------
|
;--------------------------------
|
||||||
;Installer Sections
|
;Installer Sections
|
||||||
|
|
||||||
|
@ -1158,6 +1175,9 @@ Section "-Core installation"
|
||||||
|
|
||||||
@CPACK_NSIS_EXTRA_INSTALL_COMMANDS@
|
@CPACK_NSIS_EXTRA_INSTALL_COMMANDS@
|
||||||
|
|
||||||
|
; see if we have a campaign that we might need to grab special content for
|
||||||
|
Call OptionallyDownloadCampaignServerless
|
||||||
|
|
||||||
; Handle whichever post install options were set
|
; Handle whichever post install options were set
|
||||||
Call HandlePostInstallOptions
|
Call HandlePostInstallOptions
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue