Improve VPN video routing, profile storage and authorization reuse
This commit is contained in:
@@ -1,7 +1,11 @@
|
||||
#!/bin/sh
|
||||
set -eu
|
||||
cd "$(dirname "$0")/.."
|
||||
sh scripts/prepare-lab-default.sh
|
||||
if [ "${MESHPORT_PUBLIC_CONFIG:-0}" = 1 ]; then
|
||||
cp apps/meshport_lab/assets/config/default.example.toml apps/meshport_lab/assets/config/default.toml
|
||||
else
|
||||
sh scripts/prepare-lab-default.sh
|
||||
fi
|
||||
mode="${1:---release}"
|
||||
case "$mode" in --debug|--release) ;; *) printf '%s\n' 'usage: build-lab-android.sh [--debug|--release]' >&2; exit 2;; esac
|
||||
sdk="${ANDROID_SDK_ROOT:-$HOME/Library/Android/sdk}"
|
||||
@@ -21,7 +25,7 @@ sh scripts/build-singbox-library.sh android
|
||||
mkdir -p apps/meshport_lab/android/app/src/main/jniLibs/arm64-v8a
|
||||
cp "target/aarch64-linux-android/$profile/libmeshport_ffi.so" apps/meshport_lab/android/app/src/main/jniLibs/arm64-v8a/
|
||||
cp target/singbox/android-arm64/libmeshport_proxy.so apps/meshport_lab/android/app/src/main/jniLibs/arm64-v8a/
|
||||
build_number=$(date +%s)
|
||||
build_number="${MESHPORT_BUILD_NUMBER:-$(date +%s)}"
|
||||
cd apps/meshport_lab
|
||||
flutter build apk "$mode" --target-platform android-arm64 --build-number="$build_number"
|
||||
cd ../..
|
||||
|
||||
Reference in New Issue
Block a user