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
This commit is contained in:
2026-05-20 18:50:51 +02:00
parent 0de96081c8
commit 740314a7ad
2 changed files with 27 additions and 0 deletions
+2
View File
@@ -9,3 +9,5 @@
local.properties
.watch_serial
.kotlin/sessions
profiles.d/*.sh
!profiles.d/*.sh.example
@@ -0,0 +1,25 @@
# Watch build profile template. Copy this file to <profile-name>.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:
# <user>-<server> 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"
)