mirror of
git://f0xx.org/android_cast
synced 2026-07-29 02:59:00 +03:00
initial web rssh stage 1
This commit is contained in:
12
scripts/init-wireguard-submodule.sh
Executable file
12
scripts/init-wireguard-submodule.sh
Executable file
@@ -0,0 +1,12 @@
|
||||
#!/usr/bin/env bash
|
||||
# Initialize wireguard-android submodule for embedded tunnel (optional but recommended for production WG).
|
||||
set -euo pipefail
|
||||
ROOT="$(cd "$(dirname "$0")/.." && pwd)"
|
||||
cd "$ROOT"
|
||||
if [[ ! -d third-party/wireguard-android/.git ]]; then
|
||||
git submodule add https://git.zx2c4.com/wireguard-android third-party/wireguard-android || \
|
||||
git clone --depth 1 https://git.zx2c4.com/wireguard-android third-party/wireguard-android
|
||||
fi
|
||||
git submodule update --init --recursive third-party/wireguard-android
|
||||
echo "wireguard-android ready under third-party/wireguard-android"
|
||||
echo "Gradle includes :tunnel when third-party/wireguard-android/tunnel exists."
|
||||
Reference in New Issue
Block a user