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
+12
View File
@@ -15,6 +15,13 @@ public enum AppConfiguration {
return value
}()
public static var teamID: String {
guard let dotIndex = appGroupID.firstIndex(of: ".") else {
fatalError("Invalid appGroupID format: \(appGroupID)")
}
return String(appGroupID[..<dotIndex])
}
public static var extensionBundleID: String { "\(packageName).extension" }
public static var systemExtensionBundleID: String { "\(packageName).system" }
public static var fileProviderDomainID: String { "\(packageName).workingdir" }
@@ -22,4 +29,9 @@ public enum AppConfiguration {
public static var profileUTType: String { "\(packageName).profile" }
public static var backgroundTaskID: String { "\(packageName).update_profiles" }
public static var iCloudContainerID: String { "iCloud.\(packageName)" }
#if os(macOS)
public static var rootHelperBundleID: String { "\(packageName).helper" }
public static var rootHelperMachService: String { "\(appGroupID).helper" }
#endif
}