LinusU / node-appdmg

💾 Generate your app dmgs
MIT License
1.67k stars 151 forks source link

The 'openfolder' is not supported on Apple Silicon devices. #216

Closed haochentao closed 1 year ago

haochentao commented 1 year ago

Error: Command failed: bless --folder /Volumes/appDMG--openfolder /Volumes/appDMG bless: The 'openfolder' is not supported on Apple Silicon devices.

cs-marcoblagoiev commented 1 year ago

I'm running into the same issue. I can confirm that this was working a few months ago on Apple Silicon

LinusU commented 1 year ago

Interesting 🤔

I wonder what would happen if we simply skip that flag on Apple Silicon...

umutocak commented 1 year ago

Anyone find a solution? This is a huge problem.

LinusU commented 1 year ago

Hmm, actually, it seems like this should be fixed by #205

As you can see here, --openfolder shouldn't be called on Apple Silicon:

https://github.com/LinusU/node-appdmg/blob/23d53dccba6e3ca8c9c307912346ad3bfd1903d3/lib/appdmg.js#L403-L405

Which version of appdmg are you using?

umutocak commented 1 year ago

I use node-appdmg v0.6.4

umutocak commented 1 year ago

the error i got : Command failed: bless --folder /Volumes/Mobile Finder --openfolder /Volumes/Mobile Finder bless: The 'openfolder' is not supported on Apple Silicon devices.

It gets stuck in the Blessing image... section.

LinusU commented 1 year ago

@umutocak are you running Node.js under Rosetta?

umutocak commented 1 year ago

yes, i closed rosetta and appdmg re-installed. This time it worked. Thank you

LinusU commented 1 year ago

Closing as fixed in https://github.com/LinusU/node-appdmg/pull/205