Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions Mist/Helpers/InstallerCreator.swift
Original file line number Diff line number Diff line change
Expand Up @@ -55,14 +55,14 @@ enum InstallerCreator {
let arguments: [String] = ["hdiutil", "detach", legacyDiskImageMountPointURL.path, "-force"]
_ = try Shell.execute(arguments)
} else {
guard let url: URL = URL(string: installer.distribution) else {
guard URL(string: installer.distribution) != nil else {
throw MistError.invalidURL(installer.distribution)
}

let distributionURL: URL = temporaryURL.appendingPathComponent(url.lastPathComponent)
let installAssistantPackageURL: URL = temporaryURL.appendingPathComponent("InstallAssistant.pkg")

!options.quiet ? PrettyPrint.print("Creating new installer '\(installer.temporaryInstallerURL.path)'...", noAnsi: options.noAnsi) : Mist.noop()
arguments = ["installer", "-pkg", distributionURL.path, "-target", installer.temporaryDiskImageMountPointURL.path]
arguments = ["installer", "-pkg", installAssistantPackageURL.path, "-target", installer.temporaryDiskImageMountPointURL.path]
let variables: [String: String] = ["CM_BUILD": "CM_BUILD"]
_ = try Shell.execute(arguments, environment: variables)
}
Expand Down