From 668ecbefd03e304a7a6364b4588ac3865e82c9ee Mon Sep 17 00:00:00 2001 From: avi Date: Tue, 22 Sep 2026 12:20:55 -0500 Subject: [PATCH] =?UTF-8?q?update-app.sh:=20also=20kill=20the=20packaged?= =?UTF-8?q?=20binary=20(=E2=80=A6/bin/shonar-desktop),=20not=20just=20java?= =?UTF-8?q?=20MainKt=20=E2=80=94=20without=20it=20a=20packaged=20run=20sur?= =?UTF-8?q?vived=20the=20update=20and=20the=20relaunch=20left=20a=20twin?= =?UTF-8?q?=20window?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- scripts/update-app.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/scripts/update-app.sh b/scripts/update-app.sh index 10cfd60..d40779c 100755 --- a/scripts/update-app.sh +++ b/scripts/update-app.sh @@ -28,9 +28,14 @@ if ! ./gradlew :app:createDistributable -q; then fi # Stop the app (and its engine) only AFTER a good build exists. +# Packaged runs appear as .../bin/shonar-desktop; dev runs as java MainKt. pkill -f 'com.shonar.desktop.MainKt' 2>/dev/null +pkill -f 'shonar-desktop/bin/shonar-desktop' 2>/dev/null pkill -f 'uvicorn shonar.main:app' 2>/dev/null sleep 2 +# Last resort: anything still holding a SHONAR window. +pkill -f 'shonar-desktop' 2>/dev/null +sleep 2 bin="$repo/app/build/compose/binaries/main/app/shonar-desktop/bin/shonar-desktop" [ -x "$bin" ] || { echo "distributable missing at $bin"; exit 1; }