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