Files
shenandshen c7cc2aa865 Fix VPN internet connectivity and simplify client setup
Initialize Android physical interfaces and preserve macOS scoped routes. Add redacted diagnostics, default DNS, ordered auto-save, simplified controls, scanner rotation settings, and native regression coverage. Restore vendored build sources and document validation and stability checks.
2026-10-12 06:51:25 -07:00

20 lines
581 B
Bash

#!/bin/sh
set -eu
cd "$(dirname "$0")/.."
if [ -x work/toolchain/go-sdk/go/bin/go ]; then
export PATH="$PWD/work/toolchain/go-sdk/go/bin:$PATH"
fi
export GOPATH="$PWD/work/toolchain/go"
export GOMODCACHE="$GOPATH/pkg/mod"
export GOCACHE="$PWD/work/cache/go-build"
export GOTOOLCHAIN=auto
export GOFLAGS="${GOFLAGS:--tags=with_utls}"
task_root="$PWD"
cd engines/singbox
go mod download github.com/sagernet/sing-box@v1.14.3
cd "$task_root"
python3 scripts/prepare-singbox-patch.py
export GOFLAGS="$GOFLAGS -modfile=$PWD/work/singbox-patched.go.mod"
cd engines/singbox
exec go "$@"