mirror of
git://f0xx.org/android_cast
synced 2026-07-29 03:18:32 +03:00
wireguard -> third-party
This commit is contained in:
@@ -1,12 +1,13 @@
|
||||
#!/usr/bin/env bash
|
||||
# Initialize wireguard-android submodule for embedded tunnel (optional but recommended for production WG).
|
||||
# Initialize wireguard-android submodule (third-party/wireguard-android in .gitmodules).
|
||||
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
|
||||
if ! grep -q 'third-party/wireguard-android' .gitmodules 2>/dev/null; then
|
||||
echo "error: .gitmodules missing third-party/wireguard-android — use repo .gitmodules from git" >&2
|
||||
exit 1
|
||||
fi
|
||||
git submodule sync third-party/wireguard-android
|
||||
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