1
0
mirror of git://f0xx.org/android_cast synced 2026-07-29 02:59:00 +03:00

wireguard -> third-party

This commit is contained in:
Anton Afanasyeu
2026-06-11 11:19:21 +02:00
parent 88ca1b9e70
commit f5c107bb85
8 changed files with 56 additions and 25 deletions

View File

@@ -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."