Skip to content

Commit 56dd3fb

Browse files
committed
Fixes #189 - macOS 15.6+ installer creation failure
Changed installer package path to use InstallAssistant.pkg instead of the distribution file (.dist). This resolves the "Opened package is not the same at install time" error that occurs on macOS 15.6 and newer.
1 parent 87754cb commit 56dd3fb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Mist/Helpers/InstallerCreator.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,11 +28,11 @@ enum InstallerCreator {
2828

2929
packageURL = URL(fileURLWithPath: "/Volumes/Install \(installer.name)").appendingPathComponent(package.filename.replacingOccurrences(of: ".dmg", with: ".pkg"))
3030
} else {
31-
guard let url: URL = URL(string: installer.distributionURL) else {
31+
guard URL(string: installer.distributionURL) != nil else {
3232
throw MistError.invalidURL(installer.distributionURL)
3333
}
3434

35-
packageURL = URL(fileURLWithPath: cacheDirectory).appendingPathComponent(installer.id).appendingPathComponent(url.lastPathComponent)
35+
packageURL = URL(fileURLWithPath: cacheDirectory).appendingPathComponent(installer.id).appendingPathComponent("InstallAssistant.pkg")
3636
}
3737

3838
try await DirectoryRemover.remove(installer.temporaryInstallerURL)

0 commit comments

Comments
 (0)