use start-stop-daemon to kill Xvfb

This commit is contained in:
John Kleinschmidt
2021-06-17 22:01:06 -04:00
parent 50760dfa33
commit 1d10a68c31

View File

@@ -220,7 +220,8 @@ step-maybe-cleanup-arm64-mac: &step-maybe-cleanup-arm64-mac
rm -rf ~/Library/Application\ Support/Electron*
rm -rf ~/Library/Application\ Support/electron*
elif [ "$TARGET_ARCH" == "arm" ] || [ "$TARGET_ARCH" == "arm64" ]; then
pkill Xvfb || echo "Xvfb not running"
XVFB=/usr/bin/Xvfb
/sbin/start-stop-daemon --stop --exec $XVFB || echo "Xvfb not running"
pkill electron || echo "electron not running"
rm -rf ~/.config/Electron*
rm -rf ~/.config/electron*