diff --git a/scripts/download.ps1 b/scripts/download.ps1 index c515af3f..2850edb6 100644 --- a/scripts/download.ps1 +++ b/scripts/download.ps1 @@ -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 diff --git a/scripts/download/pcap2socks.ps1 b/scripts/download/pcap2socks.ps1 new file mode 100644 index 00000000..71879b99 --- /dev/null +++ b/scripts/download/pcap2socks.ps1 @@ -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