-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrun.command
More file actions
executable file
·28 lines (25 loc) · 799 Bytes
/
Copy pathrun.command
File metadata and controls
executable file
·28 lines (25 loc) · 799 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
#!/bin/bash
cd "$(dirname "$0")"
ROOT="$(pwd)"
# Prefer ~/.local/bin (Hermes Node) over Homebrew — see scripts/launch-release.sh.
export PATH="$HOME/.cargo/bin:$HOME/.local/bin:/opt/homebrew/bin:/usr/local/bin:$PATH"
if [ "${1:-}" = "--shortcut" ]; then
DEST="$HOME/Desktop/Deez Project Manager.command"
ln -sf "$ROOT/run.command" "$DEST"
chmod +x "$ROOT/run.command" "$DEST" 2>/dev/null || chmod +x "$ROOT/run.command"
echo "Desktop shortcut created:"
echo " $DEST"
echo "Target:"
echo " $ROOT/run.command"
echo
bash "$ROOT/scripts/install-dock-launcher.sh"
status=$?
if [ "$status" -eq 0 ]; then
open -R "$HOME/Applications/Deez Project Manager.app" 2>/dev/null || true
fi
echo
read -r
exit "$status"
fi
bash "$ROOT/scripts/launch-with-ui.sh" "$@"
exit $?