fix(installer): kill pre-extraction process directly so no orphan native host remains after install
CI / Build & Test (push) Successful in 4m45s

Made-with: Cursor
This commit is contained in:
Raven Scott
2026-02-27 21:10:34 -05:00
parent 631536e21b
commit 64e1f3ed5e
+5 -1
View File
@@ -87,7 +87,7 @@ if [[ "$PLATFORM" == "darwin" ]]; then
BARE_TMPDIR="${TMPDIR:-/tmp}"
echo " Pre-extracting native addons..."
("$HOST_BIN" >/dev/null 2>&1; true) &
"$HOST_BIN" >/dev/null 2>&1 &
BGPID=$!
# Wait up to 10s for addons to be extracted
@@ -98,8 +98,12 @@ if [[ "$PLATFORM" == "darwin" ]]; then
done
sleep 1
# Kill the pre-extraction process and any child processes it may have spawned
kill $BGPID 2>/dev/null || true
pkill -P $BGPID 2>/dev/null || true
wait $BGPID 2>/dev/null || true
# Belt-and-suspenders: kill any lingering instance not attached to Chrome
pkill -f "holesail-browser-host$" 2>/dev/null || true
# Sign all .bare and .dylib files in every extraction dir for this binary
SIGNED=0