feat: implement service kickstart and improve macos post install script (#2131)

This commit is contained in:
yyy-amnezia
2026-01-30 06:05:20 +02:00
committed by GitHub
parent 1862850108
commit 02e3107a23
3 changed files with 41 additions and 27 deletions

View File

@@ -29,7 +29,7 @@ fi
# Unload the service if loaded and remove its plist file regardless
if launchctl list "${APP_NAME}-service" &> /dev/null; then
sudo launchctl unload "$LAUNCH_DAEMONS_PLIST_NAME"
sudo launchctl bootout system "$LAUNCH_DAEMONS_PLIST_NAME" || sudo launchctl unload "$LAUNCH_DAEMONS_PLIST_NAME"
fi
sudo rm -f "$LAUNCH_DAEMONS_PLIST_NAME"