Skip to content

Commit

Permalink
Add workaround for macOS High Sierra installer creation (#144)
Browse files Browse the repository at this point in the history
  • Loading branch information
ninxsoft authored Oct 5, 2024
1 parent c91e662 commit 356cbe6
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions Mist/Helpers/InstallerCreator.swift
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,14 @@ enum InstallerCreator {
["installer", "-pkg", packageURL.path, "-target", mountPoint.path]
]

// workaround for macOS High Sierra
if installer.version.range(of: "^10\\.13\\.", options: .regularExpression) != nil {
argumentsArrays += [
["ditto", "/Applications/Install \(installer.name).app", "\(mountPoint.path)/Applications/Install \(installer.name).app"],
["rm", "-r", "/Applications/Install \(installer.name).app"]
]
}

if installer.catalinaOrNewer {
argumentsArrays += [
["ditto", "\(mountPoint.path)Applications", "\(mountPoint.path)/Applications"],
Expand Down

0 comments on commit 356cbe6

Please sign in to comment.