Drop Maxmind.GeoIP and Newtonsoft.Json dependencies

This commit is contained in:
Matthias Mailänder
2017-02-05 09:36:27 +01:00
parent b018c3d837
commit 13263f7bb2
8 changed files with 49 additions and 40 deletions

View File

@@ -35,16 +35,12 @@ if (!(Test-Path "ICSharpCode.SharpZipLib.dll"))
rmdir SharpZipLib -Recurse
}
if (!(Test-Path "MaxMind.GeoIP2.dll"))
if (!(Test-Path "MaxMind.Db.dll"))
{
echo "Fetching MaxMind.GeoIP2 from NuGet."
./nuget.exe install MaxMind.GeoIP2 -Version 2.6.0 -ExcludeVersion
echo "Fetching MaxMind.Db from NuGet."
./nuget.exe install MaxMind.Db -Version 2.0.0 -ExcludeVersion
cp MaxMind.Db/lib/net45/MaxMind.Db.* .
rmdir MaxMind.Db -Recurse
cp MaxMind.GeoIP2/lib/net45/MaxMind.GeoIP2* .
rmdir MaxMind.GeoIP2 -Recurse
cp Newtonsoft.Json/lib/net45/Newtonsoft.Json* .
rmdir Newtonsoft.Json -Recurse
}
if (!(Test-Path "SharpFont.dll"))

View File

@@ -47,17 +47,11 @@ if [ ! -f ICSharpCode.SharpZipLib.dll ]; then
rm -rf SharpZipLib
fi
if [ ! -f MaxMind.GeoIP2.dll ]; then
echo "Fetching MaxMind.GeoIP2 from NuGet"
get Newtonsoft.Json 8.0.3
get MaxMind.Db 2.0.0
get MaxMind.GeoIP2 2.6.0
if [ ! -f MaxMind.Db.dll ]; then
echo "Fetching MaxMind.Db from NuGet"
get MaxMind.Db 2.0.0 -IgnoreDependencies
cp ./MaxMind.Db/lib/net45/MaxMind.Db.* .
rm -rf MaxMind.Db
cp ./MaxMind.GeoIP2/lib/net45/MaxMind.GeoIP2* .
rm -rf MaxMind.GeoIP2
cp ./Newtonsoft.Json/lib/net45/Newtonsoft.Json* .
rm -rf Newtonsoft.Json
fi
if [ ! -f SharpFont.dll ]; then