Skip to content

createDMG fails when running on m1 mac when running under x86_64 architecture #215

Open
@adesko

Description

@adesko

I'm trying to build an app for x86_64 on m1 mac. I'm running the build scripts through the compatibility layer, so it looks like this
arch -86_64 /path/build_app.sh
I have different versions of node for arm and x86 installed, so this particular script is running with node for x86. So when the script is running, it detects the architecture as x86 and tries to run a command that is incompatible with arm Macs

15:05:35.200 › Command failed: bless --folder /Volumes/SPINSInstaller --openfolder /Volumes/SPINSInstaller
bless: The 'openfolder' is not supported on Apple Silicon devices.

Is there any way to avoid this error and build for x86 on an arm machine?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions