Add DMG wrapping to CI

This commit is contained in:
DaCool
2022-06-09 15:55:45 +00:00
committed by Sheepit Renderfarm
parent 3c5b3aba99
commit a5cce0ecc6
10 changed files with 89 additions and 1 deletions

11
dmg-wrapper/SheepIt-Run.sh Executable file
View File

@@ -0,0 +1,11 @@
#!/bin/bash
set -euo pipefail # Unofficial strict mode, see http://redsymbol.net/articles/unofficial-bash-strict-mode/
cd "$(dirname "$(readlink -f "$0")")"
# see https://stackoverflow.com/questions/3349105/how-can-i-set-the-current-working-directory-to-the-directory-of-the-script-in-ba
echo "Please only pin the first window - the launcher to the Dock"
echo "============================="
echo "Loading and launching SheepIt"
nohup "$BIN" -Xdock:icon=./$APP.png -Djna.nosys=true -jar "$JAR" &>/dev/null & disown
osascript -e 'tell application "Terminal" to close (every window whose name contains "SheepIt-Run.sh")' &
exit 0