From 740314a7adb815bcf41d56d6c9acbcf70896c060 Mon Sep 17 00:00:00 2001 From: Brummel Date: Wed, 20 May 2026 18:50:51 +0200 Subject: [PATCH] feat(wear): add profiles.d/ scaffolding for multi-profile builds Adds the directory, gitignore rule, and checked-in template. Real profile files (e.g. brummel-dev.sh) live alongside but are gitignored as they contain plaintext api_keys. refs #3 --- clients/wearos/.gitignore | 2 ++ .../profiles.d/example-profile.sh.example | 25 +++++++++++++++++++ 2 files changed, 27 insertions(+) create mode 100644 clients/wearos/profiles.d/example-profile.sh.example diff --git a/clients/wearos/.gitignore b/clients/wearos/.gitignore index 6788073..5e2bd65 100644 --- a/clients/wearos/.gitignore +++ b/clients/wearos/.gitignore @@ -9,3 +9,5 @@ local.properties .watch_serial .kotlin/sessions +profiles.d/*.sh +!profiles.d/*.sh.example diff --git a/clients/wearos/profiles.d/example-profile.sh.example b/clients/wearos/profiles.d/example-profile.sh.example new file mode 100644 index 0000000..2bea907 --- /dev/null +++ b/clients/wearos/profiles.d/example-profile.sh.example @@ -0,0 +1,25 @@ +# Watch build profile template. Copy this file to .sh in the +# same directory (the .sh files are gitignored). The profile name (the file +# basename without .sh) is what you pass to ./run.sh, e.g.: +# +# ./run.sh watch brummel-dev install +# +# Naming convention: +# - e.g. brummel-dev, brummel-minerva, krey-minerva +# Profiles whose name ends in "-dev" are treated as development builds +# (launcher label "Doctate (Dev)" + red "DEV" badge in the UI). All other +# profiles render the production-clean UI. + +# Backend URL the watch talks to. Plain HTTP is fine on the LAN. +SERVER_URL="http://minerva.lan:3000" + +# Plaintext api_key matching the slug in the server's users.toml. +# Generate with: openssl rand -base64 24 +API_KEY="REPLACE_ME_WITH_PLAINTEXT_API_KEY" + +# Bash array of ADB serials (one per attached watch this profile may target). +# Find a watch's serial with: ./run.sh devices +# Brummel's watch can appear in multiple profiles; Krey's watch only in hers. +ALLOWED_SERIALS=( + "adb-XXXXXXXX-yyyy._adb-tls-connect._tcp" +)