Skip to content

Commit

Permalink
Initial testable installer for mac
Browse files Browse the repository at this point in the history
  • Loading branch information
Agent-Hellboy committed Jun 9, 2024
1 parent 5fb8c43 commit ffbfb99
Show file tree
Hide file tree
Showing 5 changed files with 23 additions and 7 deletions.
7 changes: 7 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,13 @@
- Check system logs:
- log show --predicate 'process =="RstEyeApp"' --info --last 1h

- Uninstall
- sudo launchctl unload /Library/LaunchDaemons/com.rsteye.rsteye.plist
- sudo launchctl unload /Library/LaunchDaemons/com.rsteye.env.plist
- sudo rm /Library/LaunchDaemons/com.rsteye.rsteye.plist
- sudo rm /Library/LaunchDaemons/com.rsteye.env.plist



- Windows

Expand Down
Binary file added RstEyeIcon.icns
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<string>com.rsteye.rsteye</string>
<key>ProgramArguments</key>
<array>
<string>/Applications/RstEyeApp.app/Contents/MacOS/RstEyeApp</string>
<string>/Applications/RstEyeApp/Contents/MacOS/RstEyeApp</string>
</array>
<key>RunAtLoad</key>
<true/>
Expand Down
14 changes: 9 additions & 5 deletions mac_os_files/scripts/postinstall
Original file line number Diff line number Diff line change
@@ -1,7 +1,11 @@
#!/bin/bash
# Copy the plist file to /Library/LaunchDaemons
cp "com.rsteye.rsteye.plist" /Library/LaunchDaemons/

# Copy and load the main plist file
cp mac_os_files/com.rsteye.rsteye.plist /Library/LaunchDaemons/
launchctl load /Library/LaunchDaemons/com.rsteye.rsteye.plist
# Load the plist file using launchctl
launchctl load "/Library/LaunchDaemons/com.rsteye.rsteye.plist"

exit 0
# Start the service
launchctl start "/Library/LaunchDaemons/com.rsteye.rsteye.plist"

# Exit with success
exit 0
7 changes: 6 additions & 1 deletion mac_os_files/scripts/preinstall
Original file line number Diff line number Diff line change
Expand Up @@ -43,4 +43,9 @@ EOF
# Load the plist to set the environment variables
launchctl load /Library/LaunchDaemons/com.rsteye.env.plist

exit 0
launchctl start com.rsteye.env

# Remove the temporary files
rm /tmp/POPUP_INTERVAL
rm /tmp/POPUP_DURATION

0 comments on commit ffbfb99

Please sign in to comment.