From 0bc40653c20cb18c1c1849a1f144feef15196e94 Mon Sep 17 00:00:00 2001 From: Netch Date: Sat, 10 Jul 2021 14:40:07 +0800 Subject: [PATCH] Update download.ps1 --- scripts/download/cloak.ps1 | 5 +++-- scripts/download/geoip.ps1 | 5 +++-- scripts/download/geosite.ps1 | 5 +++-- 3 files changed, 9 insertions(+), 6 deletions(-) diff --git a/scripts/download/cloak.ps1 b/scripts/download/cloak.ps1 index 54eedeeb..853e68fd 100644 --- a/scripts/download/cloak.ps1 +++ b/scripts/download/cloak.ps1 @@ -1,7 +1,8 @@ param([string]$OutputPath) +$name="ck-client.exe" $address="https://github.com/cbeuw/Cloak/releases/download/v2.5.4/ck-client-windows-amd64-v2.5.4.exe" -Invoke-WebRequest -Uri $address -OutFile ck-client.exe +Invoke-WebRequest -Uri $address -OutFile $name -Move-Item -Force ck-client.exe $OutputPath +Move-Item -Force $name $OutputPath exit 0 \ No newline at end of file diff --git a/scripts/download/geoip.ps1 b/scripts/download/geoip.ps1 index 38add4d2..9f612f84 100644 --- a/scripts/download/geoip.ps1 +++ b/scripts/download/geoip.ps1 @@ -1,7 +1,8 @@ param([string]$OutputPath) +$name="geoip.dat" $address="https://github.com/v2fly/geoip/releases/download/202107080024/geoip.dat" -Invoke-WebRequest -Uri $address -OutFile geoip.dat +Invoke-WebRequest -Uri $address -OutFile $name -Move-Item -Force geoip.dat $OutputPath +Move-Item -Force $name $OutputPath exit 0 \ No newline at end of file diff --git a/scripts/download/geosite.ps1 b/scripts/download/geosite.ps1 index 9ddcbf2e..289e31bf 100644 --- a/scripts/download/geosite.ps1 +++ b/scripts/download/geosite.ps1 @@ -1,7 +1,8 @@ param([string]$OutputPath) +$name="geosite.dat" $address="https://github.com/v2fly/domain-list-community/releases/download/20210709152606/dlc.dat" -Invoke-WebRequest -Uri $address -OutFile geosite.dat +Invoke-WebRequest -Uri $address -OutFile $name -Move-Item -Force geosite.dat $OutputPath +Move-Item -Force $name $OutputPath exit 0 \ No newline at end of file