mirror of
https://github.com/netchx/netch.git
synced 2026-03-14 17:43:18 +08:00
[Other] Build simple-obfs
This commit is contained in:
24
Other/simple-obfs/build.ps1
Normal file
24
Other/simple-obfs/build.ps1
Normal 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
|
||||
8
Other/simple-obfs/build.sh
Normal file
8
Other/simple-obfs/build.sh
Normal file
@@ -0,0 +1,8 @@
|
||||
#!/usr/bin/env bash
|
||||
git submodule update --init || exit $?
|
||||
|
||||
./autogen.sh || exit $?
|
||||
./configure || exit $?
|
||||
|
||||
make -j2
|
||||
exit $?
|
||||
0
Other/simple-obfs/deps.ps1
Normal file
0
Other/simple-obfs/deps.ps1
Normal file
Reference in New Issue
Block a user