mirror of
https://github.com/netchx/netch.git
synced 2026-03-14 17:43:18 +08:00
24 lines
463 B
PowerShell
24 lines
463 B
PowerShell
Push-Location (Split-Path $MyInvocation.MyCommand.Path -Parent)
|
|
|
|
git clone https://github.com/shadowsocks/simple-obfs src
|
|
if ( -Not $? ) {
|
|
Pop-Location
|
|
exit $lastExitCode
|
|
}
|
|
Push-Location src
|
|
|
|
msys2 ..\build.sh
|
|
if ( -Not $? ) {
|
|
Pop-Location
|
|
|
|
rm -Recurse -Force src
|
|
exit $lastExitCode
|
|
}
|
|
|
|
cp -Force '.\src\obfs-local.exe' '..\..\release\simple-obfs.exe'
|
|
|
|
Pop-Location
|
|
rm -Recurse -Force src
|
|
|
|
Pop-Location
|
|
exit $lastExitCode |