mirror of
git://f0xx.org/android_cast
synced 2026-07-29 04:57:40 +03:00
13 lines
662 B
Bash
Executable File
13 lines
662 B
Bash
Executable File
#!/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."
|