Skip to content

Commit

Permalink
fix(mac): always build dmg's with APFS (BREAKING) (#8782)
Browse files Browse the repository at this point in the history
  • Loading branch information
mmaietta authored Jan 20, 2025
1 parent 8d6a600 commit 633490c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 8 deletions.
5 changes: 5 additions & 0 deletions .changeset/cuddly-comics-cough.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"dmg-builder": major
---

fix: removing conditional logic that would build HFS+ dmg on non-arm64 macs as HFS+ was sunset in macos 15.2
9 changes: 1 addition & 8 deletions packages/dmg-builder/src/dmg.ts
Original file line number Diff line number Diff line change
Expand Up @@ -201,14 +201,7 @@ async function createStageDmg(tempDmg: string, appPath: string, volumeName: stri
imageArgs.push("-debug")
}

let filesystem = ["HFS+", "-fsargs", "-c c=64,a=16,e=16"]
if (process.arch === "arm64") {
// Apple Silicon `hdiutil` dropped support for HFS+, so we force the latest type
// https://github.com/electron-userland/electron-builder/issues/4606
filesystem = ["APFS"]
log.warn(null, "Detected arm64 process, HFS+ is unavailable. Creating dmg with APFS - supports Mac OSX 10.12+")
}
imageArgs.push("-fs", ...filesystem)
imageArgs.push("-fs", "APFS")
imageArgs.push(tempDmg)
await hdiUtil(imageArgs)
return tempDmg
Expand Down

0 comments on commit 633490c

Please sign in to comment.