Skip to content

Commit

Permalink
mac-crafter: Only try to install create-dmg in command run
Browse files Browse the repository at this point in the history
Signed-off-by: Claudio Cambra <[email protected]>
  • Loading branch information
claucambra committed Feb 12, 2025
1 parent a5a3185 commit b1e9371
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
1 change: 0 additions & 1 deletion admin/osx/mac-crafter/Sources/Utils/Packaging.swift
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,6 @@ func createDmgForAppBundle(
sparklePackageSignKey: String?
) throws {
print("Creating DMG for the client…")
try installIfMissing("create-dmg", "brew install create-dmg")

let dmgFilePath = URL(fileURLWithPath: productPath)
.appendingPathComponent(appName)
Expand Down
1 change: 1 addition & 0 deletions admin/osx/mac-crafter/Sources/main.swift
Original file line number Diff line number Diff line change
Expand Up @@ -313,6 +313,7 @@ struct CreateDMG: ParsableCommand {
var sparklePackageSignKey: String?

mutating func run() throws {
try installIfMissing("create-dmg", "brew install create-dmg")
try createDmgForAppBundle(
appBundlePath: appBundlePath,
productPath: productPath,
Expand Down

0 comments on commit b1e9371

Please sign in to comment.