summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Buetow <paul@buetow.org>2026-04-14 22:01:34 +0300
committerPaul Buetow <paul@buetow.org>2026-04-14 22:01:34 +0300
commit974fdc556c7a52c167229bc41fec85b175e53c8e (patch)
tree1c5c80f07a367a3531511e0a496091831c2c7192
parentdb5483fe5049bdd18575ea6efad189acd72fcaf6 (diff)
fix: kill stale emulator before dev/debug-dev to prevent boot-race
pebble install races against the emulator boot animation when no emulator is running, leaving the boot screen up with no app. Killing any stale instance first gives install a clean start. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
-rw-r--r--Justfile4
1 files changed, 4 insertions, 0 deletions
diff --git a/Justfile b/Justfile
index 54d1235..9c5ee3b 100644
--- a/Justfile
+++ b/Justfile
@@ -31,7 +31,9 @@ install:
pebble install --emulator {{emulator}}
# Build + Install (the command you will use most often)
+# Kills any stale emulator first so install never races against the boot animation.
dev:
+ -pebble kill
pebble build && pebble install --emulator {{emulator}}
# Show live logs (run this in a **second** terminal)
@@ -76,7 +78,9 @@ debug-build:
DEBUG=1 pebble build
# Build + install debug app
+# Kills any stale emulator first (same reason as dev).
debug-dev:
+ -pebble kill
DEBUG=1 pebble build && pebble install --emulator {{emulator}}
# ─────────────────────────────────────────────