Skip to content

Creating HFS+ DMG using hdiutil on Intel Mac fails on OS X 15.2 #8769

Closed
@fwdillema

Description

@fwdillema
          This is the only process.arch-specific logic that happens when creating the initial dmg

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(tempDmg)
await hdiUtil(imageArgs)

Re: The volume name, we use sanitize-filename under the hood.

const volumeName = sanitizeFileName(this.computeVolumeName(arch, this.options.title))

export function sanitizeFileName(s: string, normalizeNfd = false): string {
const sanitized = _sanitizeFileName(s)
return normalizeNfd ? sanitized.normalize("NFD") : sanitized
}

Originally posted by @mmaietta in #8415 (comment)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions