Improve VPN video routing, profile storage and authorization reuse
This commit is contained in:
Executable
+16
@@ -0,0 +1,16 @@
|
||||
#!/bin/sh
|
||||
set -eu
|
||||
cd "$(dirname "$0")/.."
|
||||
config=apps/meshport_lab/assets/config/default.toml
|
||||
saved=$(mktemp)
|
||||
had_config=0
|
||||
if [ -f "$config" ]; then cp -p "$config" "$saved"; had_config=1; fi
|
||||
restore_config() {
|
||||
if [ "$had_config" = 1 ]; then cp -p "$saved" "$config"; else rm -f "$config"; fi
|
||||
rm -f "$saved"
|
||||
}
|
||||
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"
|
||||
shasum -a 256 "$output" > "$output.sha256"
|
||||
Reference in New Issue
Block a user