Create scripts\download\pcap2socks.ps1

This commit is contained in:
ChsBuffer
2021-09-20 18:54:49 +08:00
parent d3c3958dab
commit e46eef17d0
2 changed files with 16 additions and 4 deletions

View File

@@ -34,6 +34,7 @@ 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\pcap2socks.ps1 -OutputPath bin
Get-Item *
Set-Location $last

View 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