From 65a2e155bfd43767196def646ce80a289cfc13df Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Matthias=20Mail=C3=A4nder?= Date: Sun, 15 May 2016 11:00:18 +0200 Subject: [PATCH] Update to Maxmind GeoIP 2.6.0 and Db parser 2.0.0 --- Makefile | 1 - packaging/windows/OpenRA.nsi | 2 -- thirdparty/fetch-thirdparty-deps.ps1 | 10 ++++------ thirdparty/fetch-thirdparty-deps.sh | 15 ++++++--------- 4 files changed, 10 insertions(+), 18 deletions(-) diff --git a/Makefile b/Makefile index 5639dc2df3..a98b4d9f1c 100644 --- a/Makefile +++ b/Makefile @@ -413,7 +413,6 @@ install-core: default @$(INSTALL_PROGRAM) MaxMind.Db.dll "$(DATA_INSTALL_DIR)" @$(INSTALL_PROGRAM) MaxMind.GeoIP2.dll "$(DATA_INSTALL_DIR)" @$(INSTALL_PROGRAM) Newtonsoft.Json.dll "$(DATA_INSTALL_DIR)" - @$(INSTALL_PROGRAM) RestSharp.dll "$(DATA_INSTALL_DIR)" @$(INSTALL_PROGRAM) SmarIrc4net.dll "$(DATA_INSTALL_DIR)" ifneq ($(UNAME_S),Darwin) diff --git a/packaging/windows/OpenRA.nsi b/packaging/windows/OpenRA.nsi index bde0cffa28..36d29fb282 100644 --- a/packaging/windows/OpenRA.nsi +++ b/packaging/windows/OpenRA.nsi @@ -104,7 +104,6 @@ Section "Game" GAME File "${SRCDIR}\MaxMind.Db.dll" File "${SRCDIR}\MaxMind.GeoIP2.dll" File "${SRCDIR}\Newtonsoft.Json.dll" - File "${SRCDIR}\RestSharp.dll" File "${SRCDIR}\GeoLite2-Country.mmdb.gz" File "${SRCDIR}\eluant.dll" File "${SRCDIR}\SmarIrc4net.dll" @@ -207,7 +206,6 @@ Function ${UN}Clean Delete $INSTDIR\MaxMind.Db.dll Delete $INSTDIR\MaxMind.GeoIP2.dll Delete $INSTDIR\Newtonsoft.Json.dll - Delete $INSTDIR\RestSharp.dll Delete $INSTDIR\GeoLite2-Country.mmdb.gz Delete $INSTDIR\KopiLua.dll Delete $INSTDIR\soft_oal.dll diff --git a/thirdparty/fetch-thirdparty-deps.ps1 b/thirdparty/fetch-thirdparty-deps.ps1 index cacdc24ea9..9dfd557ae0 100644 --- a/thirdparty/fetch-thirdparty-deps.ps1 +++ b/thirdparty/fetch-thirdparty-deps.ps1 @@ -38,15 +38,13 @@ if (!(Test-Path "ICSharpCode.SharpZipLib.dll")) if (!(Test-Path "MaxMind.GeoIP2.dll")) { echo "Fetching MaxMind.GeoIP2 from NuGet." - ./nuget.exe install MaxMind.GeoIP2 -Version 2.3.1 -ExcludeVersion - cp MaxMind.Db/lib/net40/MaxMind.Db.* . + ./nuget.exe install MaxMind.GeoIP2 -Version 2.6.0 -ExcludeVersion + cp MaxMind.Db/lib/net45/MaxMind.Db.* . rmdir MaxMind.Db -Recurse - cp MaxMind.GeoIP2/lib/net40/MaxMind.GeoIP2* . + cp MaxMind.GeoIP2/lib/net45/MaxMind.GeoIP2* . rmdir MaxMind.GeoIP2 -Recurse - cp Newtonsoft.Json/lib/net40/Newtonsoft.Json* . + cp Newtonsoft.Json/lib/net45/Newtonsoft.Json* . rmdir Newtonsoft.Json -Recurse - cp RestSharp/lib/net4-client/RestSharp* . - rmdir RestSharp -Recurse } if (!(Test-Path "SharpFont.dll")) diff --git a/thirdparty/fetch-thirdparty-deps.sh b/thirdparty/fetch-thirdparty-deps.sh index 43b058a36d..5952701549 100755 --- a/thirdparty/fetch-thirdparty-deps.sh +++ b/thirdparty/fetch-thirdparty-deps.sh @@ -49,18 +49,15 @@ fi if [ ! -f MaxMind.GeoIP2.dll ]; then echo "Fetching MaxMind.GeoIP2 from NuGet" - get Newtonsoft.Json 7.0.1 - get MaxMind.Db 1.1.0.0 - get RestSharp 105.2.3 - get MaxMind.GeoIP2 2.3.1 - cp ./MaxMind.Db/lib/net40/MaxMind.Db.* . + get Newtonsoft.Json 8.0.3 + get MaxMind.Db 2.0.0 + get MaxMind.GeoIP2 2.6.0 + cp ./MaxMind.Db/lib/net45/MaxMind.Db.* . rm -rf MaxMind.Db - cp ./MaxMind.GeoIP2/lib/net40/MaxMind.GeoIP2* . + cp ./MaxMind.GeoIP2/lib/net45/MaxMind.GeoIP2* . rm -rf MaxMind.GeoIP2 - cp ./Newtonsoft.Json/lib/net40/Newtonsoft.Json* . + cp ./Newtonsoft.Json/lib/net45/Newtonsoft.Json* . rm -rf Newtonsoft.Json - cp ./RestSharp/lib/net4-client/RestSharp* . - rm -rf RestSharp fi if [ ! -f SharpFont.dll ]; then