mirror of
https://github.com/netchx/netch.git
synced 2026-03-14 17:43:18 +08:00
Create scripts\download\pcap2socks.ps1
This commit is contained in:
@@ -22,7 +22,7 @@ New-Item -ItemType Directory -Name i18n | Out-Null
|
||||
|
||||
Copy-Item -Recurse -Force .\netchdata-master\* .\bin -Exclude @('tap2socks.bin')
|
||||
Copy-Item -Recurse -Force .\netchmode-master\mode\* .\mode
|
||||
Copy-Item -Recurse -Force .\netchi18n-master\i18n\* .\i18n
|
||||
Copy-Item -Recurse -Force .\netchi18n-master\i18n\* .\i18n
|
||||
|
||||
Remove-Item -Recurse -Force netchdata-master
|
||||
Remove-Item -Recurse -Force netchmode-master
|
||||
@@ -31,9 +31,10 @@ Remove-Item -Force data.zip
|
||||
Remove-Item -Force mode.zip
|
||||
Remove-Item -Force i18n.zip
|
||||
|
||||
#..\scripts\download\aiodns.ps1 -OutputPath bin
|
||||
..\scripts\download\cloak.ps1 -OutputPath bin
|
||||
..\scripts\download\xray-core.ps1 -OutputPath bin
|
||||
#..\scripts\download\aiodns.ps1 -OutputPath bin
|
||||
..\scripts\download\cloak.ps1 -OutputPath bin
|
||||
..\scripts\download\xray-core.ps1 -OutputPath bin
|
||||
..\scripts\download\pcap2socks.ps1 -OutputPath bin
|
||||
|
||||
Get-Item *
|
||||
Set-Location $last
|
||||
|
||||
11
scripts/download/pcap2socks.ps1
Normal file
11
scripts/download/pcap2socks.ps1
Normal file
@@ -0,0 +1,11 @@
|
||||
param([string]$OutputPath)
|
||||
$address="https://github.com/zhxie/pcap2socks/releases/download/v0.6.2/pcap2socks-v0.6.2-windows-amd64.zip"
|
||||
|
||||
Invoke-WebRequest -Uri $address -OutFile pcap2socks.zip
|
||||
Expand-Archive -Force -Path pcap2socks.zip -DestinationPath pcap2socks
|
||||
|
||||
Move-Item -Force pcap2socks\pcap2socks.exe $OutputPath
|
||||
|
||||
Remove-Item -Recurse -Force pcap2socks
|
||||
Remove-Item -Recurse -Force pcap2socks.zip
|
||||
exit 0
|
||||
Reference in New Issue
Block a user