Relaunch running client apps when deploying
This commit is contained in:
@@ -10,3 +10,11 @@ rm -rf /Applications/Byre.app
|
||||
mv /Applications/Byre.app.new /Applications/Byre.app
|
||||
plutil -extract CFBundleVersion raw /Applications/Byre.app/Contents/Info.plist
|
||||
plutil -extract ByreCommit raw /Applications/Byre.app/Contents/Info.plist
|
||||
app='^/Applications/Byre.app/Contents/MacOS/Byre$'
|
||||
if pgrep -q -a -f "$app"; then
|
||||
osascript -e 'tell application id "run.fc.byre.mac" to quit'
|
||||
while pgrep -q -a -f "$app"; do
|
||||
sleep 0.2
|
||||
done
|
||||
open /Applications/Byre.app
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user