mirror of
https://github.com/jlengrand/5GUIs-1.git
synced 2026-03-10 08:01:25 +00:00
Merge pull request #13 from sarnau/additional_java_detection
Additional Java detection, like JD-GUI
This commit is contained in:
@@ -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")
|
||||
|
||||
@@ -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
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user