refactor: Fix macOS standalone application

This commit is contained in:
世界
2026-01-05 01:21:24 +08:00
parent ef1c924c64
commit 59317f3c79
66 changed files with 2799 additions and 585 deletions
+5 -2
View File
@@ -1,7 +1,10 @@
#if os(macOS)
import Foundation
import os
import SystemExtensions
private let logger = Logger(category: "SystemExtension")
public class SystemExtension: NSObject, OSSystemExtensionRequestDelegate {
private let forceUpdate: Bool
private let inBackground: Bool
@@ -26,10 +29,10 @@
existing.bundleVersion == ext.bundleVersion,
existing.bundleShortVersion == ext.bundleShortVersion
{
NSLog("Skip update system extension")
logger.info("Skip update system extension")
return .cancel
} else {
NSLog("Update system extension")
logger.info("Update system extension")
return .replace
}
}