mirror of
https://github.com/netchx/netch.git
synced 2026-05-07 22:44:03 +08:00
Update build.ps1
This commit is contained in:
@@ -22,7 +22,7 @@ param (
|
||||
$PublishSingleFile = $True
|
||||
)
|
||||
|
||||
.\download.ps1 $OutputPath
|
||||
.\scripts\download.ps1 $OutputPath
|
||||
|
||||
if ( -Not $? ) {
|
||||
Exit 1
|
||||
|
||||
@@ -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
|
||||
7
scripts/downloads/cloak.ps1
Normal file
7
scripts/downloads/cloak.ps1
Normal 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
|
||||
13
scripts/downloads/xray-core.ps1
Normal file
13
scripts/downloads/xray-core.ps1
Normal 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
|
||||
Reference in New Issue
Block a user