build script and github actions for rootful and rootless builds

This commit is contained in:
Siddharth Saxena
2023-12-17 02:12:33 +05:30
parent 91e167e25d
commit 1d8626ae9b
11 changed files with 121 additions and 18 deletions

View File

@@ -1,6 +1,11 @@
#!/bin/bash
launchctl unload /var/jb/Library/LaunchDaemons/com.julioverne.screendumpd.plist
launchctl load /var/jb/Library/LaunchDaemons/com.julioverne.screendumpd.plist
if [ -L "/var/jb" ]; then
launchctl unload /var/jb/Library/LaunchDaemons/com.julioverne.screendumpd.plist
launchctl load /var/jb/Library/LaunchDaemons/com.julioverne.screendumpd.plist
else
launchctl unload /Library/LaunchDaemons/com.julioverne.screendumpd.plist
launchctl load /Library/LaunchDaemons/com.julioverne.screendumpd.plist
fi
exit 0;

View File

@@ -1,5 +1,9 @@
#!/bin/bash
launchctl unload /var/jb/Library/LaunchDaemons/com.julioverne.screendumpd.plist
if [ -L "/var/jb" ]; then
launchctl unload /var/jb/Library/LaunchDaemons/com.julioverne.screendumpd.plist
else
launchctl unload /Library/LaunchDaemons/com.julioverne.screendumpd.plist
fi
exit 0;

View File

@@ -6,7 +6,7 @@
<string>com.julioverne.screendumpd</string>
<key>ProgramArguments</key>
<array>
<string>/var/jb/usr/libexec/screendumpd</string>
<string>/usr/libexec/screendumpd</string>
</array>
<key>RunAtLoad</key>
<true/>

View File

@@ -0,0 +1,16 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>Label</key>
<string>com.julioverne.screendumpd</string>
<key>ProgramArguments</key>
<array>
<string>/var/jb/usr/libexec/screendumpd</string>
</array>
<key>RunAtLoad</key>
<true/>
<key>KeepAlive</key>
<true/>
</dict>
</plist>