Skip to content

Commit 356cbe6

Browse files
authoredOct 5, 2024··
Add workaround for macOS High Sierra installer creation (#144)
1 parent c91e662 commit 356cbe6

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed
 

‎Mist/Helpers/InstallerCreator.swift

+8
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,14 @@ enum InstallerCreator {
4141
["installer", "-pkg", packageURL.path, "-target", mountPoint.path]
4242
]
4343

44+
// workaround for macOS High Sierra
45+
if installer.version.range(of: "^10\\.13\\.", options: .regularExpression) != nil {
46+
argumentsArrays += [
47+
["ditto", "/Applications/Install \(installer.name).app", "\(mountPoint.path)/Applications/Install \(installer.name).app"],
48+
["rm", "-r", "/Applications/Install \(installer.name).app"]
49+
]
50+
}
51+
4452
if installer.catalinaOrNewer {
4553
argumentsArrays += [
4654
["ditto", "\(mountPoint.path)Applications", "\(mountPoint.path)/Applications"],

0 commit comments

Comments
 (0)
Please sign in to comment.