Update download.ps1

This commit is contained in:
Netch
2021-07-10 14:38:08 +08:00
parent fdc72e67f0
commit bdc1445934
5 changed files with 33 additions and 5 deletions

View File

@@ -31,8 +31,11 @@ Remove-Item -Force data.zip
Remove-Item -Force mode.zip
Remove-Item -Force i18n.zip
..\scripts\download\cloak.ps1 -OutputPath Bin
..\scripts\download\xray-core.ps1 -OutputPath Bin
..\scripts\download\cloak.ps1 -OutputPath Bin
..\scripts\download\geoip.ps1 -OutputPath Bin
..\scripts\download\geosite.ps1 -OutputPath Bin
..\scripts\download\v2ray-core.ps1 -OutputPath Bin
..\scripts\download\x2ray-core.ps1 -OutputPath Bin
Get-Item *
Set-Location $last

View File

@@ -0,0 +1,7 @@
param([string]$OutputPath)
$address="https://github.com/v2fly/geoip/releases/download/202107080024/geoip.dat"
Invoke-WebRequest -Uri $address -OutFile geoip.dat
Move-Item -Force geoip.dat $OutputPath
exit 0

View File

@@ -0,0 +1,7 @@
param([string]$OutputPath)
$address="https://github.com/v2fly/domain-list-community/releases/download/20210709152606/dlc.dat"
Invoke-WebRequest -Uri $address -OutFile geosite.dat
Move-Item -Force geosite.dat $OutputPath
exit 0

View File

@@ -0,0 +1,13 @@
param([string]$OutputPath)
$address="https://github.com/v2fly/v2ray-core/releases/download/v4.40.1/v2ray-windows-64.zip"
Invoke-WebRequest -Uri $address -OutFile v2ray-core.zip
Expand-Archive -Force -Path v2ray-core.zip -DestinationPath v2ray-core
Move-Item -Force v2ray-core\v2ctl.exe $OutputPath
Move-Item -Force v2ray-core\v2ray.exe $OutputPath
Move-Item -Force v2ray-core\wv2ray.exe $OutputPath
Remove-Item -Recurse -Force v2ray-core
Remove-Item -Recurse -Force v2ray-core.zip
exit 0

View File

@@ -4,9 +4,7 @@ $address="https://github.com/XTLS/Xray-core/releases/download/v1.4.2/Xray-window
Invoke-WebRequest -Uri $address -OutFile xray-core.zip
Expand-Archive -Force -Path xray-core.zip -DestinationPath xray-core
Move-Item -Force xray-core\xray.exe $OutputPath
Move-Item -Force xray-core\geoip.dat $OutputPath
Move-Item -Force xray-core\geosite.dat $OutputPath
Move-Item -Force xray-core\xray.exe $OutputPath
Remove-Item -Recurse -Force xray-core
Remove-Item -Recurse -Force xray-core.zip