Files
netch/Other/geoip/build.ps1
2021-11-07 23:14:22 +08:00

13 lines
293 B
PowerShell

Set-Location (Split-Path $MyInvocation.MyCommand.Path -Parent)
try {
Invoke-WebRequest `
-Uri 'https://github.com/v2fly/geoip/releases/latest/download/geoip.dat' `
-OutFile 'geoip.dat'
}
catch {
exit 1
}
mv -Force 'geoip.dat' '..\release\geoip.dat'
exit 0