From 4cc3e2bf861ba04e3924e337b9ac5d3e8d21eb02 Mon Sep 17 00:00:00 2001 From: UMTS at Teleco Date: Sun, 8 Mar 2026 15:09:27 +0100 Subject: sexy --- dist/mac-launcher.sh | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 dist/mac-launcher.sh (limited to 'dist/mac-launcher.sh') 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 -- cgit v1.2.3-70-g09d2