diff --git a/.gitignore b/.gitignore index 88d05c38ae..16b1efb7bb 100644 --- a/.gitignore +++ b/.gitignore @@ -1,4 +1,4 @@ -# Visual Studio crap +# Visual Studio Release bin obj @@ -8,14 +8,12 @@ obj *.user *.sln.cache *.manifest -mods/*/*.dll *.CodeAnalysisLog.xml *.lastcodeanalysissucceeded - -# ReSharper crap _ReSharper.*/ -#binary stuff +# binaries +mods/*/*.dll /*.dll /*.dll.config *.pdb @@ -28,23 +26,14 @@ _ReSharper.*/ \#* .*.sw? -# dependency DLLs (different for every platform!) -cg.dll -cgGL.dll -freetype6.dll -zlib1.dll -SDL.dll - -/OpenRa.Gl.dll - -#monodevelop +# Monodevelop *.pidb *.userprefs -# osx crap +# Mac OS X .DS_Store -# osx build crap +# XCode packaging/osx/launcher/build/ packaging/osx/launcher/OpenRA.xcodeproj/*.pbxuser packaging/osx/launcher/OpenRA.xcodeproj/*.perspectivev3 @@ -58,7 +47,7 @@ OpenRA.Launcher.Mac/OpenRA.xcodeproj/*.perspectivev3 OpenRA.Launcher.Mac/OpenRA.xcodeproj/*.mode1v3 *.resources -# KDE crap +# KDE *.kate-swp *.directory diff --git a/packaging/windows/OpenAL32.dll b/packaging/windows/OpenAL32.dll new file mode 100755 index 0000000000..71ced6a21f Binary files /dev/null and b/packaging/windows/OpenAL32.dll differ diff --git a/packaging/windows/OpenRA.nsi b/packaging/windows/OpenRA.nsi index 2fcba3ddb3..377a791fdf 100644 --- a/packaging/windows/OpenRA.nsi +++ b/packaging/windows/OpenRA.nsi @@ -16,7 +16,6 @@ !include "MUI2.nsh" -!include "ZipDLL.nsh" !include "FileFunc.nsh" !include "WordFunc.nsh" @@ -40,7 +39,6 @@ SetCompressor lzma Var StartMenuFolder !insertmacro MUI_PAGE_STARTMENU Application $StartMenuFolder -;!insertmacro MUI_PAGE_COMPONENTS !insertmacro MUI_PAGE_INSTFILES !insertmacro MUI_UNPAGE_CONFIRM @@ -49,23 +47,6 @@ Var StartMenuFolder !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 ;*************************** @@ -96,6 +77,10 @@ Section "Client" Client File "${SRCDIR}\global mix database.dat" File "${SRCDIR}\GeoIP.dll" File "${SRCDIR}\GeoIP.dat" + File OpenAL32.dll + File SDL.dll + File freetype6.dll + File zlib1.dll !insertmacro MUI_STARTMENU_WRITE_BEGIN Application CreateDirectory "$SMPROGRAMS\$StartMenuFolder" @@ -163,41 +148,6 @@ SectionGroupEnd ;*************************** ;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 ClearErrors ReadRegDWORD $0 HKLM "SOFTWARE\Microsoft\NET Framework Setup\NDP\v3.5" "Install" @@ -266,12 +216,13 @@ Function ${UN}Clean Delete $INSTDIR\INSTALL Delete $INSTDIR\OpenRA.ico Delete $INSTDIR\*.ttf - Delete $INSTDIR\freetype6.dll - Delete $INSTDIR\SDL.dll - Delete $INSTDIR\zlib1.dll Delete "$INSTDIR\global mix database.dat" Delete $INSTDIR\GeoIP.dat 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" Delete $INSTDIR\uninstaller.exe RMDir $INSTDIR diff --git a/packaging/windows/SDL.dll b/packaging/windows/SDL.dll new file mode 100644 index 0000000000..628cdfcf01 Binary files /dev/null and b/packaging/windows/SDL.dll differ diff --git a/packaging/windows/freetype6.dll b/packaging/windows/freetype6.dll new file mode 100644 index 0000000000..e35edc6bb0 Binary files /dev/null and b/packaging/windows/freetype6.dll differ diff --git a/packaging/windows/zlib1.dll b/packaging/windows/zlib1.dll new file mode 100644 index 0000000000..775aaf1f2c Binary files /dev/null and b/packaging/windows/zlib1.dll differ