Add proxy speed measurement, connection logs and standalone Android packaging
This commit is contained in:
@@ -1,6 +1,15 @@
|
||||
#!/bin/sh
|
||||
set -eu
|
||||
cd "$(dirname "$0")/.."
|
||||
case "${1:-}" in
|
||||
"") ;;
|
||||
--standalone)
|
||||
python3 scripts/prepare-android-standalone-signing.py
|
||||
export MESHPORT_ANDROID_STANDALONE=1
|
||||
export MESHPORT_ANDROID_SIGNING_PROPERTIES="$PWD/work/android-signing/standalone.properties"
|
||||
;;
|
||||
*) printf '%s\n' 'usage: package-lab-android.sh [--standalone]' >&2; exit 2 ;;
|
||||
esac
|
||||
config=apps/meshport_lab/assets/config/default.toml
|
||||
saved=$(mktemp)
|
||||
had_config=0
|
||||
@@ -12,5 +21,7 @@ restore_config() {
|
||||
trap restore_config EXIT HUP INT TERM
|
||||
build_number=$(date +%s)
|
||||
MESHPORT_PUBLIC_CONFIG=1 MESHPORT_BUILD_NUMBER="$build_number" sh scripts/build-lab-android.sh --release
|
||||
output="outputs/android/MeshPort-0.1.0-$build_number-release.apk"
|
||||
prefix=MeshPort
|
||||
if [ "${MESHPORT_ANDROID_STANDALONE:-0}" = 1 ]; then prefix=MeshPort-Standalone; fi
|
||||
output="outputs/android/$prefix-0.1.0-$build_number-release.apk"
|
||||
shasum -a 256 "$output" > "$output.sha256"
|
||||
|
||||
Reference in New Issue
Block a user