mirror of
https://github.com/netchx/netch.git
synced 2026-03-14 17:43:18 +08:00
15 lines
466 B
PowerShell
15 lines
466 B
PowerShell
Set-Location (Split-Path $MyInvocation.MyCommand.Path -Parent)
|
|
|
|
git clone https://github.com/shadowsocks/shadowsocks-rust -b 'v1.12.0' src
|
|
if ( -Not $? ) {
|
|
exit $lastExitCode
|
|
}
|
|
Set-Location src
|
|
|
|
cargo build --features logging,trust-dns,local,utility,local-http,local-tunnel,local-socks4,multi-threaded,stream-cipher --release
|
|
if ( -Not $? ) {
|
|
exit $lastExitCode
|
|
}
|
|
|
|
cp -Force '.\target\release\sslocal.exe' '..\..\release\Shadowsocks.exe'
|
|
exit 0 |