Load bundled personal defaults when no saved profile exists
This commit is contained in:
@@ -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,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
|
||||
|
||||
@@ -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"
|
||||
Reference in New Issue
Block a user