vpn/scripts/fetch-engine-artifacts.sh
2026-09-23 01:19:36 +00:00

23 lines
924 B
Bash
Executable file

#!/usr/bin/env bash
set -euo pipefail
cd "$(dirname "$0")/.."
mkdir -p native/android/libs
echo "This script does not download unpinned native binaries."
echo
echo "FreeTurn upstream (${FREETURN_REF:-master}):"
echo " git clone --depth 1 --branch ${FREETURN_REF:-master} https://github.com/samosvalishe/free-turn-proxy.git /tmp/free-turn-proxy"
echo " cd /tmp/free-turn-proxy && task build:android"
echo " cp dist/freeturn.aar $PWD/native/android/libs/freeturn.aar"
echo
echo "SignBox/sing-box artifact: provide the exact libbox.aar/private SignBox AAR and record its source/commit in THIRD_PARTY_NOTICES.md."
echo "The upstream build shape is: go install github.com/sagernet/gomobile/cmd/gomobile@<pinned>; make lib_android"
echo
for artifact in native/android/libs/freeturn.aar native/android/libs/libbox.aar; do
if [[ -f "$artifact" ]]; then
sha256sum "$artifact"
else
echo "MISSING $artifact"
fi
done