Skip to content

Commit 5f22e9f

Browse files
authored
Merge pull request #423 from pennig/cryptex-disk-image-kind
Add support for local cryptex disk images
2 parents 1e2cc92 + 1bf0aa3 commit 5f22e9f

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

Sources/XcodesKit/Models+Runtimes.swift

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,8 +129,9 @@ public struct InstalledRuntime: Decodable {
129129

130130
extension InstalledRuntime {
131131
enum Kind: String, Decodable {
132-
case diskImage = "Disk Image"
133132
case bundled = "Bundled with Xcode"
133+
case cryptexDiskImage = "Cryptex Disk Image"
134+
case diskImage = "Disk Image"
134135
case legacyDownload = "Legacy Download"
135136
}
136137

Sources/XcodesKit/RuntimeInstaller.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ public class RuntimeInstaller {
7878
if runtime.hasDuplicateVersion {
7979
str += " (\(runtime.build))"
8080
}
81-
if runtime.state == .legacyDownload || runtime.state == .diskImage {
81+
if runtime.state == .legacyDownload || runtime.state == .diskImage || runtime.state == .cryptexDiskImage {
8282
str += " (Installed)"
8383
} else if runtime.state == .bundled {
8484
str += " (Bundled with selected Xcode)"

0 commit comments

Comments
 (0)