From 529be23e2df7302bb545ea9ac53cc06cf76796a5 Mon Sep 17 00:00:00 2001 From: Connection Refused Date: Thu, 23 Sep 2021 20:21:12 +0800 Subject: [PATCH] [Other] Build simple-obfs --- Other/simple-obfs/build.ps1 | 24 ++++++++++++++++++++++++ Other/simple-obfs/build.sh | 8 ++++++++ Other/simple-obfs/deps.ps1 | 0 3 files changed, 32 insertions(+) create mode 100644 Other/simple-obfs/build.ps1 create mode 100644 Other/simple-obfs/build.sh create mode 100644 Other/simple-obfs/deps.ps1 diff --git a/Other/simple-obfs/build.ps1 b/Other/simple-obfs/build.ps1 new file mode 100644 index 00000000..187ef6fe --- /dev/null +++ b/Other/simple-obfs/build.ps1 @@ -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 \ No newline at end of file diff --git a/Other/simple-obfs/build.sh b/Other/simple-obfs/build.sh new file mode 100644 index 00000000..11f75ece --- /dev/null +++ b/Other/simple-obfs/build.sh @@ -0,0 +1,8 @@ +#!/usr/bin/env bash +git submodule update --init || exit $? + +./autogen.sh || exit $? +./configure || exit $? + +make -j2 +exit $? \ No newline at end of file diff --git a/Other/simple-obfs/deps.ps1 b/Other/simple-obfs/deps.ps1 new file mode 100644 index 00000000..e69de29b