fix: .appex for macOS extensions

This commit is contained in:
relikd
2025-12-01 01:14:53 +01:00
parent eb169ae0a2
commit 62d1407d17

View File

@@ -47,6 +47,10 @@ struct MetaInfo {
} }
case "com.apple.application-and-system-extension": case "com.apple.application-and-system-extension":
self.type = FileType.Extension self.type = FileType.Extension
if let bundleDir = recursiveSearchInfoPlist(url) {
isOSX = bundleDir.appendingPathComponent("MacOS").exists() && bundleDir.lastPathComponent == "Contents"
effective = bundleDir
}
case "com.google.android.apk", "dyn.ah62d4rv4ge80c6dp" /* apk */, "public.archive.apk", "dyn.ah62d4rv4ge80c6dpry" /* apkm */: case "com.google.android.apk", "dyn.ah62d4rv4ge80c6dp" /* apk */, "public.archive.apk", "dyn.ah62d4rv4ge80c6dpry" /* apkm */:
self.type = FileType.APK self.type = FileType.APK
zipFile = ZipFile(self.url.path) zipFile = ZipFile(self.url.path)