copy it in the make dependencies step
This commit is contained in:
1
Makefile
1
Makefile
@@ -319,6 +319,7 @@ osx-dependencies: cli-dependencies
|
||||
|
||||
dependencies: $(os-dependencies)
|
||||
@./thirdparty/fetch-geoip-db.sh
|
||||
@ $(CP) thirdparty/download/GeoLite2-Country.mmdb.gz .
|
||||
|
||||
all-dependencies: cli-dependencies windows-dependencies osx-dependencies
|
||||
|
||||
|
||||
1
make.ps1
1
make.ps1
@@ -116,6 +116,7 @@ elseif ($command -eq "dependencies")
|
||||
cd thirdparty
|
||||
./fetch-thirdparty-deps.ps1
|
||||
cp download/*.dll ..
|
||||
cp download/GeoLite2-Country.mmdb.gz ..
|
||||
cp download/windows/*.dll ..
|
||||
cd ..
|
||||
echo "Dependencies copied."
|
||||
|
||||
1
thirdparty/fetch-geoip-db.sh
vendored
1
thirdparty/fetch-geoip-db.sh
vendored
@@ -14,6 +14,5 @@ if [[ ! -e $filename ]] || [[ -n $(find . -name $filename -mtime +30 -print) ]];
|
||||
rm -f $filename
|
||||
echo "Updating GeoIP country database from MaxMind."
|
||||
curl -s -L -O http://geolite.maxmind.com/download/geoip/database/$filename
|
||||
cp $filename ../..
|
||||
fi
|
||||
|
||||
|
||||
1
thirdparty/fetch-thirdparty-deps.ps1
vendored
1
thirdparty/fetch-thirdparty-deps.ps1
vendored
@@ -135,7 +135,6 @@ if (!(Test-Path "GeoLite2-Country.mmdb.gz") -Or (((get-date) - (get-item "GeoLit
|
||||
echo "Updating GeoIP country database from MaxMind."
|
||||
$target = Join-Path $pwd.ToString() "GeoLite2-Country.mmdb.gz"
|
||||
(New-Object System.Net.WebClient).DownloadFile("http://geolite.maxmind.com/download/geoip/database/GeoLite2-Country.mmdb.gz", $target)
|
||||
cp GeoLite2-Country.mmdb.gz ..\..
|
||||
}
|
||||
|
||||
cd ..
|
||||
|
||||
Reference in New Issue
Block a user