Skip to content

Commit

Permalink
[win32] Integrate game add-ons into the installer
Browse files Browse the repository at this point in the history
  • Loading branch information
garbear committed Jun 23, 2015
1 parent 816fa95 commit 29625b7
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 0 deletions.
16 changes: 16 additions & 0 deletions project/Win32BuildSetup/genNsisIncludes.bat
Expand Up @@ -28,6 +28,22 @@ IF EXIST BUILD_WIN32\addons\pvr.* (
ECHO SectionGroupEnd >> pvr-addons.nsi
)

SET Counter=1
IF EXIST BUILD_WIN32\addons\game.libretro.* (
ECHO SectionGroup "Game Add-ons" SecGameAddons >> game-addons.nsi
FOR /F "tokens=*" %%P IN ('dir /B /AD BUILD_WIN32\addons\game.libretro.*') DO (
SET "output=%%P"
SET output=!output:game.=!
ECHO Section "!output!" SecGameAddons!Counter! >> game-addons.nsi
ECHO SectionIn 1 #section is in installtype Full >> game-addons.nsi
ECHO SetOutPath "$INSTDIR\addons\%%P" >> game-addons.nsi
ECHO File /r "${app_root}\addons\%%P\*.*" >> game-addons.nsi
ECHO SectionEnd >> game-addons.nsi
SET /A Counter = !Counter! + 1
)
ECHO SectionGroupEnd >> game-addons.nsi
)

SET Counter=1
IF EXIST BUILD_WIN32\addons\audiodecoder.* (
ECHO SectionGroup "Audio Decoder Add-ons" SecAudioDecoderAddons >> audiodecoder-addons.nsi
Expand Down
1 change: 1 addition & 0 deletions project/Win32BuildSetup/genNsisInstaller.nsi
Expand Up @@ -281,6 +281,7 @@ SectionEnd
;*-addons.nsi are generated by genNsisIncludes.bat
!include /nonfatal "audiodecoder-addons.nsi"
!include /nonfatal "audioencoder-addons.nsi"
!include /nonfatal "game-addons.nsi"
!include /nonfatal "pvr-addons.nsi"
!include /nonfatal "skin-addons.nsi"

Expand Down

0 comments on commit 29625b7

Please sign in to comment.