1
0
mirror of https://github.com/nicoverbruggen/phpmon.git synced 2025-08-06 19:40:08 +02:00

👌 Fix updater bundle logic, skip release notes

This commit is contained in:
2023-03-24 01:03:19 +01:00
parent ff8eb4fa04
commit 6413287606
3 changed files with 24 additions and 25 deletions

View File

@ -24,14 +24,8 @@ class LaunchControl {
public static func terminateApplications(bundleIds: [String]) async {
let runningApplications = NSWorkspace.shared.runningApplications
// Look for these instances
let ids = [
"com.nicoverbruggen.phpmon.dev",
"com.nicoverbruggen.phpmon"
]
// Terminate all instances found
for id in ids {
for id in bundleIds {
if let phpmon = runningApplications.first(where: {
(application) in return application.bundleIdentifier == id
}) {