updates
This commit is contained in:
+32
-3
@@ -18,7 +18,36 @@ EXE=$(/usr/libexec/PlistBuddy -c 'Print :CFBundleExecutable' "$APP/Contents/Info
|
||||
[[ -x "$APP/Contents/MacOS/$EXE" ]] || { echo 'Application executable missing' >&2; exit 1; }
|
||||
echo "Build complete: $APP"
|
||||
echo "Log: $LOG"
|
||||
if [[ "${1:-}" == '--launch' ]]; then
|
||||
pkill -x "$APP_NAME" 2>/dev/null || true
|
||||
open "$APP"
|
||||
|
||||
if [[ "${1:-}" == "--launch" ]]; then
|
||||
echo
|
||||
echo "=== LAUNCHING ORIONTOOLBAR ==="
|
||||
|
||||
pkill -x "$APP_NAME" 2>/dev/null || true
|
||||
sleep 1
|
||||
|
||||
APP_EXEC="$APP/Contents/MacOS/$EXE"
|
||||
|
||||
if [[ ! -x "$APP_EXEC" ]]; then
|
||||
echo "ERROR: Application executable missing: $APP_EXEC"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
echo "Application: $APP"
|
||||
echo "Executable: $APP_EXEC"
|
||||
|
||||
# Launch the exact built application as a separate macOS process.
|
||||
/usr/bin/open -n "$APP" --args
|
||||
|
||||
sleep 3
|
||||
|
||||
if /usr/bin/pgrep -x "$APP_NAME" >/dev/null; then
|
||||
echo "SUCCESS: OrionToolbar is running."
|
||||
/usr/bin/pgrep -fl "$APP_NAME"
|
||||
else
|
||||
echo "ERROR: OrionToolbar did not remain running."
|
||||
echo "Try launching the executable directly:"
|
||||
echo "$APP_EXEC"
|
||||
exit 1
|
||||
fi
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user