Skip to content

fix(dmg): migrate to APFS as default filesystem for DMG builds#9616

Draft
RobbieMinderhoud wants to merge 11 commits intoelectron-userland:masterfrom
RobbieMinderhoud:fix/apfs-default-filesystem
Draft

fix(dmg): migrate to APFS as default filesystem for DMG builds#9616
RobbieMinderhoud wants to merge 11 commits intoelectron-userland:masterfrom
RobbieMinderhoud:fix/apfs-default-filesystem

Conversation

@RobbieMinderhoud
Copy link
Copy Markdown

@RobbieMinderhoud RobbieMinderhoud commented Feb 23, 2026

Fixes #9615

@changeset-bot
Copy link
Copy Markdown

changeset-bot Bot commented Feb 23, 2026

🦋 Changeset detected

Latest commit: c252a2c

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 8 packages
Name Type
dmg-builder Patch
app-builder-lib Patch
electron-builder Patch
electron-builder-squirrel-windows Patch
electron-forge-maker-appimage Patch
electron-forge-maker-nsis-web Patch
electron-forge-maker-nsis Patch
electron-forge-maker-snap Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

Comment thread packages/dmg-builder/src/dmgUtil.ts
@mmaietta mmaietta changed the title fix(dmg): use APFS as default filesystem for DMG builds - #9615 feat(dmg): migrate to APFS as default filesystem for DMG builds - #9615 Feb 24, 2026
@mmaietta mmaietta changed the title feat(dmg): migrate to APFS as default filesystem for DMG builds - #9615 fix(dmg): migrate to APFS as default filesystem for DMG builds Mar 5, 2026
Copy link
Copy Markdown
Collaborator

@mmaietta mmaietta left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please resolve tsc errors when you have a chance and we can quickly move forward with this PR. Thanks!

@RobbieMinderhoud
Copy link
Copy Markdown
Author

@mmaietta Sorry, it's been a while. Was working with a local patch. This is fixed now. Let's hope the tests pass. I'll check tomorrow.

@RobbieMinderhoud
Copy link
Copy Markdown
Author

Currently making a fix for the last test

@RobbieMinderhoud
Copy link
Copy Markdown
Author

@mmaietta Would you happen to have time to look at it again?

mmaietta
mmaietta previously approved these changes Mar 12, 2026
@RobbieMinderhoud
Copy link
Copy Markdown
Author

THank you!

Fixing the tests currently

Increased test size, APFS could result in a larger build.
@RobbieMinderhoud
Copy link
Copy Markdown
Author

@mmaietta Increased the size of DMGTest.js, APFS can be larger.

@RobbieMinderhoud
Copy link
Copy Markdown
Author

@mmaietta Increasing the size, just a little more... Let's hope this will do it.

Comment thread test/src/mac/dmgTest.ts
// different block sizing and allocation, so use a wide range (450MB–1GB).
const minBytes = 450 * 1024 * 1024
const maxBytes = 600 * 1024 * 1024
const maxBytes = 1024 * 1024 * 1024
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is a huuuge new range for just changing filesystem. Is the dmg size being minimized?
Maybe we can do 2 tests, one for HFS and another for APFS

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could be a good one. Let's try

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ur right, lemme see what I can do.

@mmaietta
Copy link
Copy Markdown
Collaborator

mmaietta commented May 1, 2026

Hi @RobbieMinderhoud , have you had a chance to investigate on this further?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug] DMG build fails on macOS 26 Tahoe beta due to HFS+ mounting issue

2 participants