bundle Windows dependencies inside the installer
http://libsdl.org/release/SDL-1.2.15-win32.zip http://kcat.strangesoft.net/openal-soft-1.15.1-bin.zip http://sourceforge.net/projects/gnuwin32/files/freetype/2.3.5-1/freetype-2.3.5-1-bin.zip http://sourceforge.net/projects/gnuwin32/files/zlib/1.2.3/zlib-1.2.3-bin.zip/download
This commit is contained in:
25
.gitignore
vendored
25
.gitignore
vendored
@@ -1,4 +1,4 @@
|
|||||||
# Visual Studio crap
|
# Visual Studio
|
||||||
Release
|
Release
|
||||||
bin
|
bin
|
||||||
obj
|
obj
|
||||||
@@ -8,14 +8,12 @@ obj
|
|||||||
*.user
|
*.user
|
||||||
*.sln.cache
|
*.sln.cache
|
||||||
*.manifest
|
*.manifest
|
||||||
mods/*/*.dll
|
|
||||||
*.CodeAnalysisLog.xml
|
*.CodeAnalysisLog.xml
|
||||||
*.lastcodeanalysissucceeded
|
*.lastcodeanalysissucceeded
|
||||||
|
|
||||||
# ReSharper crap
|
|
||||||
_ReSharper.*/
|
_ReSharper.*/
|
||||||
|
|
||||||
#binary stuff
|
# binaries
|
||||||
|
mods/*/*.dll
|
||||||
/*.dll
|
/*.dll
|
||||||
/*.dll.config
|
/*.dll.config
|
||||||
*.pdb
|
*.pdb
|
||||||
@@ -28,23 +26,14 @@ _ReSharper.*/
|
|||||||
\#*
|
\#*
|
||||||
.*.sw?
|
.*.sw?
|
||||||
|
|
||||||
# dependency DLLs (different for every platform!)
|
# Monodevelop
|
||||||
cg.dll
|
|
||||||
cgGL.dll
|
|
||||||
freetype6.dll
|
|
||||||
zlib1.dll
|
|
||||||
SDL.dll
|
|
||||||
|
|
||||||
/OpenRa.Gl.dll
|
|
||||||
|
|
||||||
#monodevelop
|
|
||||||
*.pidb
|
*.pidb
|
||||||
*.userprefs
|
*.userprefs
|
||||||
|
|
||||||
# osx crap
|
# Mac OS X
|
||||||
.DS_Store
|
.DS_Store
|
||||||
|
|
||||||
# osx build crap
|
# XCode
|
||||||
packaging/osx/launcher/build/
|
packaging/osx/launcher/build/
|
||||||
packaging/osx/launcher/OpenRA.xcodeproj/*.pbxuser
|
packaging/osx/launcher/OpenRA.xcodeproj/*.pbxuser
|
||||||
packaging/osx/launcher/OpenRA.xcodeproj/*.perspectivev3
|
packaging/osx/launcher/OpenRA.xcodeproj/*.perspectivev3
|
||||||
@@ -58,7 +47,7 @@ OpenRA.Launcher.Mac/OpenRA.xcodeproj/*.perspectivev3
|
|||||||
OpenRA.Launcher.Mac/OpenRA.xcodeproj/*.mode1v3
|
OpenRA.Launcher.Mac/OpenRA.xcodeproj/*.mode1v3
|
||||||
*.resources
|
*.resources
|
||||||
|
|
||||||
# KDE crap
|
# KDE
|
||||||
*.kate-swp
|
*.kate-swp
|
||||||
*.directory
|
*.directory
|
||||||
|
|
||||||
|
|||||||
BIN
packaging/windows/OpenAL32.dll
Executable file
BIN
packaging/windows/OpenAL32.dll
Executable file
Binary file not shown.
@@ -16,7 +16,6 @@
|
|||||||
|
|
||||||
|
|
||||||
!include "MUI2.nsh"
|
!include "MUI2.nsh"
|
||||||
!include "ZipDLL.nsh"
|
|
||||||
!include "FileFunc.nsh"
|
!include "FileFunc.nsh"
|
||||||
!include "WordFunc.nsh"
|
!include "WordFunc.nsh"
|
||||||
|
|
||||||
@@ -40,7 +39,6 @@ SetCompressor lzma
|
|||||||
Var StartMenuFolder
|
Var StartMenuFolder
|
||||||
!insertmacro MUI_PAGE_STARTMENU Application $StartMenuFolder
|
!insertmacro MUI_PAGE_STARTMENU Application $StartMenuFolder
|
||||||
|
|
||||||
;!insertmacro MUI_PAGE_COMPONENTS
|
|
||||||
!insertmacro MUI_PAGE_INSTFILES
|
!insertmacro MUI_PAGE_INSTFILES
|
||||||
|
|
||||||
!insertmacro MUI_UNPAGE_CONFIRM
|
!insertmacro MUI_UNPAGE_CONFIRM
|
||||||
@@ -49,23 +47,6 @@ Var StartMenuFolder
|
|||||||
|
|
||||||
!insertmacro MUI_LANGUAGE "English"
|
!insertmacro MUI_LANGUAGE "English"
|
||||||
|
|
||||||
Var DownloadCount
|
|
||||||
!macro DownloadDependency name saveas
|
|
||||||
IntOp $DownloadCount 0 + 1
|
|
||||||
download:
|
|
||||||
NSISdl::download "http://open-ra.org/get-dependency.php?file=${name}" ${saveas}
|
|
||||||
Pop $R0
|
|
||||||
StrCmp $R0 "success" success
|
|
||||||
IntCmp $DownloadCount 3 failure retry
|
|
||||||
failure:
|
|
||||||
MessageBox MB_OK "Download of ${saveas} did not succeed. Aborting installation. $\n$\n$R0"
|
|
||||||
Abort
|
|
||||||
retry:
|
|
||||||
IntOp $DownloadCount $DownloadCount + 1
|
|
||||||
Goto download
|
|
||||||
success:
|
|
||||||
!macroend
|
|
||||||
|
|
||||||
;***************************
|
;***************************
|
||||||
;Section Definitions
|
;Section Definitions
|
||||||
;***************************
|
;***************************
|
||||||
@@ -96,6 +77,10 @@ Section "Client" Client
|
|||||||
File "${SRCDIR}\global mix database.dat"
|
File "${SRCDIR}\global mix database.dat"
|
||||||
File "${SRCDIR}\GeoIP.dll"
|
File "${SRCDIR}\GeoIP.dll"
|
||||||
File "${SRCDIR}\GeoIP.dat"
|
File "${SRCDIR}\GeoIP.dat"
|
||||||
|
File OpenAL32.dll
|
||||||
|
File SDL.dll
|
||||||
|
File freetype6.dll
|
||||||
|
File zlib1.dll
|
||||||
|
|
||||||
!insertmacro MUI_STARTMENU_WRITE_BEGIN Application
|
!insertmacro MUI_STARTMENU_WRITE_BEGIN Application
|
||||||
CreateDirectory "$SMPROGRAMS\$StartMenuFolder"
|
CreateDirectory "$SMPROGRAMS\$StartMenuFolder"
|
||||||
@@ -163,41 +148,6 @@ SectionGroupEnd
|
|||||||
;***************************
|
;***************************
|
||||||
;Dependency Sections
|
;Dependency Sections
|
||||||
;***************************
|
;***************************
|
||||||
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:
|
|
||||||
!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:
|
|
||||||
!insertmacro DownloadDependency "sdl" "sdl.zip"
|
|
||||||
!insertmacro ZIPDLL_EXTRACT sdl.zip $INSTDIR SDL.dll
|
|
||||||
done:
|
|
||||||
SectionEnd
|
|
||||||
|
|
||||||
Section "-Freetype" Freetype
|
|
||||||
AddSize 583
|
|
||||||
SetOutPath "$TEMP"
|
|
||||||
IfFileExists $INSTDIR\zlib1.dll done installfreetype
|
|
||||||
installfreetype:
|
|
||||||
!insertmacro DownloadDependency "freetype" "freetype-zlib.zip"
|
|
||||||
ZipDLL::extractall "freetype-zlib.zip" "$INSTDIR"
|
|
||||||
done:
|
|
||||||
SectionEnd
|
|
||||||
|
|
||||||
Section "-DotNet" DotNet
|
Section "-DotNet" DotNet
|
||||||
ClearErrors
|
ClearErrors
|
||||||
ReadRegDWORD $0 HKLM "SOFTWARE\Microsoft\NET Framework Setup\NDP\v3.5" "Install"
|
ReadRegDWORD $0 HKLM "SOFTWARE\Microsoft\NET Framework Setup\NDP\v3.5" "Install"
|
||||||
@@ -266,12 +216,13 @@ Function ${UN}Clean
|
|||||||
Delete $INSTDIR\INSTALL
|
Delete $INSTDIR\INSTALL
|
||||||
Delete $INSTDIR\OpenRA.ico
|
Delete $INSTDIR\OpenRA.ico
|
||||||
Delete $INSTDIR\*.ttf
|
Delete $INSTDIR\*.ttf
|
||||||
Delete $INSTDIR\freetype6.dll
|
|
||||||
Delete $INSTDIR\SDL.dll
|
|
||||||
Delete $INSTDIR\zlib1.dll
|
|
||||||
Delete "$INSTDIR\global mix database.dat"
|
Delete "$INSTDIR\global mix database.dat"
|
||||||
Delete $INSTDIR\GeoIP.dat
|
Delete $INSTDIR\GeoIP.dat
|
||||||
Delete $INSTDIR\GeoIP.dll
|
Delete $INSTDIR\GeoIP.dll
|
||||||
|
Delete $INSTDIR\OpenAL32.dll
|
||||||
|
Delete $INSTDIR\SDL.dll
|
||||||
|
Delete $INSTDIR\freetype6.dll
|
||||||
|
Delete $INSTDIR\zlib1.dll
|
||||||
DeleteRegKey HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\OpenRA"
|
DeleteRegKey HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\OpenRA"
|
||||||
Delete $INSTDIR\uninstaller.exe
|
Delete $INSTDIR\uninstaller.exe
|
||||||
RMDir $INSTDIR
|
RMDir $INSTDIR
|
||||||
|
|||||||
BIN
packaging/windows/SDL.dll
Normal file
BIN
packaging/windows/SDL.dll
Normal file
Binary file not shown.
BIN
packaging/windows/freetype6.dll
Normal file
BIN
packaging/windows/freetype6.dll
Normal file
Binary file not shown.
BIN
packaging/windows/zlib1.dll
Normal file
BIN
packaging/windows/zlib1.dll
Normal file
Binary file not shown.
Reference in New Issue
Block a user