Merge pull request #13 from sarnau/additional_java_detection

Additional Java detection, like JD-GUI
This commit is contained in:
Helge Heß
2020-10-05 12:59:40 +02:00
committed by GitHub
2 changed files with 6 additions and 0 deletions

View File

@@ -180,6 +180,10 @@ final class FileDetectionState: ObservableObject {
break
}
}
// JD-GUI
if self.info.infoDictionary?.JavaX != nil {
detectedFeatures.insert(.java)
}
do { // Electron apps seem to have this ...
let suburl = contents.appendingPathComponent("Resources/app.asar")

View File

@@ -17,6 +17,7 @@ struct InfoDict: Equatable {
let supportedPlatforms : [ String ] // MacOSX
let minimumSystemVersion : String?
let appleScriptEnabled : Bool
let JavaX : Bool // e.g. JD-GUI
let iconName : String? // AppIcon
let iconFile : String? // AppIcon
@@ -61,5 +62,6 @@ struct InfoDict: Equatable {
supportedPlatforms = dictionary["CFBundleSupportedPlatforms"] as? [ String ]
?? []
JavaX = dictionary["JavaX"] != nil
}
}