[Other] Build simple-obfs

This commit is contained in:
Connection Refused
2021-09-23 20:21:12 +08:00
parent 22c169ff10
commit 529be23e2d
3 changed files with 32 additions and 0 deletions

View File

@@ -0,0 +1,24 @@
Push-Location (Split-Path $MyInvocation.MyCommand.Path -Parent)
git clone https://github.com/shadowsocksrr/shadowsocksr-libev -b 'Akkariiin/develop' 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

View File

@@ -0,0 +1,8 @@
#!/usr/bin/env bash
git submodule update --init || exit $?
./autogen.sh || exit $?
./configure || exit $?
make -j2
exit $?

View File