Load bundled personal defaults when no saved profile exists

This commit is contained in:
shenlei
2026-10-10 16:27:22 +09:00
parent 2eb9a6d81c
commit 10b10e5bdf
9 changed files with 87 additions and 0 deletions
+1
View File
@@ -1,6 +1,7 @@
#!/bin/sh
set -eu
cd "$(dirname "$0")/.."
sh scripts/prepare-lab-default.sh
mode="${1:---release}"
case "$mode" in --debug|--release) ;; *) printf '%s\n' 'usage: build-lab-android.sh [--debug|--release]' >&2; exit 2;; esac
sdk="${ANDROID_SDK_ROOT:-$HOME/Library/Android/sdk}"
+1
View File
@@ -1,6 +1,7 @@
#!/bin/sh
set -eu
cd "$(dirname "$0")/.."
sh scripts/prepare-lab-default.sh
scripts/cargo-local.sh build -p meshport-ffi -p meshport-vpn-helper --locked
root="$PWD"
cd apps/meshport_lab
+10
View File
@@ -0,0 +1,10 @@
#!/bin/sh
set -eu
cd "$(dirname "$0")/.."
config_dir=apps/meshport_lab/assets/config
if [ -f "$config_dir/default.private.toml" ]; then
cp "$config_dir/default.private.toml" "$config_dir/default.toml"
else
cp "$config_dir/default.example.toml" "$config_dir/default.toml"
fi
chmod 600 "$config_dir/default.toml"