Update build.ps1

This commit is contained in:
Connection Refused
2021-04-05 02:03:02 +08:00
parent 9c02ef353f
commit d42aa8f184
4 changed files with 28 additions and 5 deletions

View File

@@ -22,7 +22,7 @@ param (
$PublishSingleFile = $True
)
.\download.ps1 $OutputPath
.\scripts\download.ps1 $OutputPath
if ( -Not $? ) {
Exit 1

View File

@@ -2,7 +2,7 @@ param([string]$OutputPath)
$NetchDataURL="https://github.com/NetchX/NetchData/archive/refs/heads/master.zip"
$NetchModeURL="https://github.com/NetchX/NetchMode/archive/refs/heads/master.zip"
$NetchI18NURL="https://github.com/NetchX/NetchTranslation/archive/refs/heads/master.zip"
$NetchI18NURL="https://github.com/NetchX/NetchI18N/archive/refs/heads/master.zip"
$last=$(Get-Location)
New-Item -ItemType Directory -Name $OutputPath | Out-Null
@@ -22,15 +22,18 @@ New-Item -ItemType Directory -Name i18n | Out-Null
Copy-Item -Recurse -Force .\NetchData-master\* .\bin
Copy-Item -Recurse -Force .\NetchMode-master\mode\* .\mode
Copy-Item -Recurse -Force .\NetchTranslation-master\i18n\* .\i18n
Copy-Item -Recurse -Force .\NetchI18N-master\i18n\* .\i18n
Remove-Item -Recurse -Force NetchData-master
Remove-Item -Recurse -Force NetchMode-master
Remove-Item -Recurse -Force NetchTranslation-master
Remove-Item -Recurse -Force NetchI18N-master
Remove-Item -Force data.zip
Remove-Item -Force mode.zip
Remove-Item -Force i18n.zip
..\scripts\downloads\cloak.ps1 -OutputPath bin
..\scripts\downlaods\xray-core.ps1 -OutputPath bin
Get-Item *
Set-Location $last
exit 0
exit 0

View File

@@ -0,0 +1,7 @@
param([string]$OutputPath)
$address="https://github.com/cbeuw/Cloak/releases/download/v2.5.3/ck-client-windows-amd64-v2.5.3.exe"
Invoke-WebRequest -Uri $address -OutFile ck-client.exe
Move-Item -Force ck-client.exe $OutputPath
exit 0

View File

@@ -0,0 +1,13 @@
param([string]$OutputPath)
$address="https://github.com/XTLS/Xray-core/releases/download/v1.4.2/Xray-windows-64.zip"
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
Remove-Item -Recurse -Force xray-core
Remove-Item -Recurse -Force xray-core.zip
exit 0