mirror of
https://github.com/netchx/netch.git
synced 2026-05-11 23:45:06 +08:00
Update download.ps1
This commit is contained in:
@@ -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
|
||||
|
||||
7
scripts/download/geoip.ps1
Normal file
7
scripts/download/geoip.ps1
Normal 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
|
||||
7
scripts/download/geosite.ps1
Normal file
7
scripts/download/geosite.ps1
Normal 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
|
||||
13
scripts/download/v2ray-core.ps1
Normal file
13
scripts/download/v2ray-core.ps1
Normal 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
|
||||
@@ -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
|
||||
Reference in New Issue
Block a user