Files
2025-12-17 19:34:48 +01:00

10 lines
286 B
Swift

import Foundation
enum InstallOrigin {
static func isHomebrewCask(appBundleURL: URL) -> Bool {
let resolved = appBundleURL.resolvingSymlinksInPath()
let path = resolved.path
return path.contains("/Caskroom/") || path.contains("/Homebrew/Caskroom/")
}
}