refactor: Fix macOS standalone application
This commit is contained in:
@@ -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
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user