aboutsummaryrefslogtreecommitdiff
path: root/dist/mac-launcher.sh
diff options
context:
space:
mode:
authorUMTS at Teleco <crt@teleco.ch>2026-03-08 15:09:27 +0100
committerUMTS at Teleco <crt@teleco.ch>2026-03-08 15:09:27 +0100
commit4cc3e2bf861ba04e3924e337b9ac5d3e8d21eb02 (patch)
treecceef17fb6199d3218e4d1a8a7836322b76faa86 /dist/mac-launcher.sh
parentc73146a40e3885b0aa796c48babf8971a604e6bb (diff)
sexy
Diffstat (limited to 'dist/mac-launcher.sh')
-rw-r--r--dist/mac-launcher.sh19
1 files changed, 19 insertions, 0 deletions
diff --git a/dist/mac-launcher.sh b/dist/mac-launcher.sh
new file mode 100644
index 0000000..c384cae
--- /dev/null
+++ b/dist/mac-launcher.sh
@@ -0,0 +1,19 @@
+#!/bin/bash
+# hoardom app launcher - opens Terminal with TUI
+SELF_DIR="$(cd "$(dirname "$0")" && pwd)"
+HOARDOM="/usr/local/bin/hoardom"
+
+# try installed binary first, fall back to bundled copy
+if [ ! -x "$HOARDOM" ]; then
+ HOARDOM="$SELF_DIR/hoardom-bin"
+fi
+
+if [ -x "$HOARDOM" ]; then
+ osascript \
+ -e 'tell application "Terminal"' \
+ -e ' activate' \
+ -e " do script \"'$HOARDOM' --tui\"" \
+ -e 'end tell'
+else
+ osascript -e 'display dialog "hoardom binary not found" buttons {"OK"} default button "OK"'
+fi