Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Script fails with macOS 12.3 on Apple Silicon due to "bless" option not supported #127

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
Phillipus opened this issue Mar 14, 2022 · 10 comments
Assignees
Labels
Milestone

Comments

@Phillipus
Copy link

Since macOS 12.3 on Apple Silicon the "bless" part of the script gives the following error and the script fails:

bless: The 'openfolder' is not supported on Apple Silicon devices.

Commenting out this line succeeds:

bless --folder "${MOUNT_DIR}" --openfolder "${MOUNT_DIR}"

@aonez
Copy link
Member

aonez commented Mar 14, 2022

Please attach the output of bless --help.

It works on 12.2.1 so maybe they removed that option it the 12.3 beta.

@Phillipus
Copy link
Author

12.3 beta.

12.3 was released today.

@Phillipus
Copy link
Author

Please attach the output of bless --help.

That doesn't help much as all options are listed.

However man bless shows a different set of options for Intel and a different set of options for Silicon. --openfolder is not an option listed for Silicon.

@aonez
Copy link
Member

aonez commented Mar 14, 2022

I'm updating to 12.3 to test that one. Just checked that not using that option does not seem to affect on the DMG opening in the Finder when mounted.

Will test tomorrow on older OSs and if not using that argument does not affect on most OSs maybe we can get rid of it instead of detecting  Silicon and limiting to Intel or 12.2.1-.

@Phillipus
Copy link
Author

I tested with the whole line removed and also with the offending part removed:

bless --folder "${MOUNT_DIR}"

In both cases it seemed to be OK.

@aonez
Copy link
Member

aonez commented Mar 15, 2022

In both cases it seemed to be OK.

Indeed! Tested it in as low as Mac OS X 10.6. So maybe that bless was only needed in older OSs.

Probably then the best way is to set the bless step as optional and not used by default.

@Aleksid1
Copy link

Aleksid1 commented Mar 16, 2022

I have the same problem after upgrading to macOS 12.3 on Mac Mini M1 with original stable version of create-dmg script.

@Aleksid1
Copy link

Suggested change to remove "bless --folder ... " line cures the problem.

aonez added a commit that referenced this issue Mar 17, 2022
Seems to have no effect on modern OSs and is no more compatible on macOS 12.3 with  Silicon
#127
@aonez
Copy link
Member

aonez commented Mar 17, 2022

Just released 1.0.10 with this issue fixed: https://github.com/create-dmg/create-dmg/releases/tag/v1.0.10
Also the brew update is on it's way: Homebrew/homebrew-core#97089

@aonez aonez self-assigned this Mar 17, 2022
@aonez aonez added the bug label Mar 17, 2022
@aonez aonez added this to the 1.0.10 milestone Mar 17, 2022
@Phillipus
Copy link
Author

Thanks for the fast response. 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants