mirror of
https://github.com/Tautulli/Tautulli.git
synced 2025-08-14 02:26:58 -07:00
Add workflow for automated Windows/MacOS builds
This commit is contained in:
parent
d8f223327e
commit
6c8d6ed2ca
10 changed files with 535 additions and 10 deletions
25
package/macos-scripts/preinstall
Executable file
25
package/macos-scripts/preinstall
Executable file
|
@ -0,0 +1,25 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
function check_tautulli_running () {
|
||||
if pgrep -x "Tautulli" > /dev/null
|
||||
then
|
||||
dialogText=`osascript -e 'set dialogText to button returned of (display dialog "Tautulli is still running. Please shutdown Tautulli before continuing." buttons {"Retry", "Shutdown Tautulli", "Abort"})'`;
|
||||
|
||||
if [[ $dialogText == 'Retry' ]]
|
||||
then
|
||||
check_tautulli_running;
|
||||
elif [[ $dialogText == 'Shutdown Tautulli' ]]
|
||||
then
|
||||
pkill Tautulli
|
||||
while pgrep Tautulli > /dev/null; do sleep 1; done
|
||||
check_tautulli_running;
|
||||
elif [[ $dialogText == 'Abort' ]]
|
||||
then
|
||||
exit 1;
|
||||
fi
|
||||
else
|
||||
exit 0;
|
||||
fi
|
||||
}
|
||||
|
||||
check_tautulli_running;
|
Loading…
Add table
Add a link
Reference in a new issue