Skip to content

Commit 47f4b78

Browse files
abizerclaude
andcommitted
Fix install-helper.sh paths: helper is in Helpers/, script is in Resources/
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 2e3b61b commit 47f4b78

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

support/install-helper.sh

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
11
#!/bin/bash
22
# Install the wtop privileged helper daemon.
3-
# Run with: sudo /Applications/wtop.app/Contents/Helpers/install-helper.sh
43
set -euo pipefail
54

65
if [ "$(id -u)" -ne 0 ]; then
76
echo "This script must be run with sudo."
87
exit 1
98
fi
109

11-
DIR="$(cd "$(dirname "$0")" && pwd)"
12-
HELPER_SRC="$DIR/wtop-helper"
13-
PLIST_SRC="$DIR/../Resources/me.abizer.wtop.helper.plist"
10+
# Resolve paths relative to the .app bundle
11+
BUNDLE="$(cd "$(dirname "$0")/.." && pwd)"
12+
HELPER_SRC="$BUNDLE/Helpers/wtop-helper"
13+
PLIST_SRC="$BUNDLE/Resources/me.abizer.wtop.helper.plist"
1414
HELPER_DEST="/Library/PrivilegedHelperTools/me.abizer.wtop.helper"
1515
PLIST_DEST="/Library/LaunchDaemons/me.abizer.wtop.helper.plist"
1616

0 commit comments

Comments
 (0)