Skip to content

Commit

Permalink
Merge pull request #3281 from Mailaender/sdl-openal-mirrors
Browse files Browse the repository at this point in the history
Added OpenAL and SDL Windows dependency DLLs to mirrors
  • Loading branch information
chrisforbes committed May 16, 2013
2 parents a2a3def + a4c69f0 commit 56067e4
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions packaging/windows/OpenRA.nsi
Expand Up @@ -160,28 +160,25 @@ SectionGroupEnd
;***************************
Section "-OpenAl" OpenAl
AddSize 768
SetOutPath "$TEMP"
ClearErrors
${GetFileVersion} $SYSDIR\OpenAL32.dll $0
IfErrors installal 0
${VersionCompare} $0 "6.14.357.24" $1
IntCmp $1 1 done done installal
installal:
SetOutPath "$TEMP"
NSISdl::download http://connect.creativelabs.com/openal/Downloads/oalinst.zip oalinst.zip
Pop $R0
StrCmp $R0 "success" +2
Abort
!insertmacro DownloadDependency "openal" "oalinst.zip"
!insertmacro ZIPDLL_EXTRACT oalinst.zip OpenAL oalinst.exe
ExecWait "$TEMP\OpenAL\oalinst.exe"
done:
SectionEnd

Section "-Sdl" SDL
AddSize 317
SetOutPath "$TEMP"
IfFileExists $INSTDIR\SDL.dll done installsdl
installsdl:
SetOutPath "$TEMP"
NSISdl::download http://www.libsdl.org/release/SDL-1.2.14-win32.zip sdl.zip
!insertmacro DownloadDependency "sdl" "sdl.zip"
!insertmacro ZIPDLL_EXTRACT sdl.zip $INSTDIR SDL.dll
done:
SectionEnd
Expand Down

0 comments on commit 56067e4

Please sign in to comment.