Skip to content
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

Mac installer package fails to run post installation #435

Open
borez opened this issue Oct 16, 2024 · 7 comments
Open

Mac installer package fails to run post installation #435

borez opened this issue Oct 16, 2024 · 7 comments

Comments

@borez
Copy link

borez commented Oct 16, 2024

Describe the bug
A clear and concise description of what the bug is.

Latest MacOS package fails to open, with an error displayed.
Versions (please complete the following information):

  • OS: Sequoia 15.0.1
  • Python Version: NA (I just used the installer? - do I need to install Python?)
  • ArgyllCMS Version: 3.30
  • DisplayCAL Version: 3.9.14

Additional context
Add any other context about the problem here.

image
@decayedxistence
Copy link

Describe the bug A clear and concise description of what the bug is.

Latest MacOS package fails to open, with an error displayed. Versions (please complete the following information):

* OS: Sequoia 15.0.1

* Python Version: NA (I just used the installer? - do I need to install Python?)

* ArgyllCMS Version: 3.30

* DisplayCAL Version: 3.9.14

Additional context Add any other context about the problem here.
image

If you're on an Intel Mac, there's an x64 .dmg that will work. The arm64 is for Apple Silicon.

@borez
Copy link
Author

borez commented Oct 16, 2024

Thanks but i am on Apple Silicon, and running the arm64 package.

@eoyilmaz
Copy link
Owner

@borez Let me check the uploaded package... Yeah, for some reason it is broken, let me upload again.

@eoyilmaz
Copy link
Owner

eoyilmaz commented Oct 18, 2024

So, I regenerated the app and dmg image, before uploading it I run both the app and the extracted app from dmg, and they both worked. But after uploading it to GitHub and downloading back again, it stopped working.

As I understand there is an issue with the signature, so the running the following disables the gate keeper for removes the com.apple.quarantine attribute from DisplayCAL.app.

Not an ideal solution, but will let you run it until I found a solution.

xattr -dr com.apple.quarantine /Applications/DisplayCAL.app

@eoyilmaz
Copy link
Owner

As I see the com.apple.quarantine attribute is added to all downloaded files, so that the user is asked to give permission when they first run the application, preventing malwares to run wihtout the users permission, and then after the first run it is removed.

But, I believe, in our case, the attribute persists... Still looking for a solution...

@MStraeten
Copy link

you might try dummy signing:
codesign --sign - --verbose --deep --force --preserve-metadata=entitlements,requirements,flags,runtime -i "org.displaycal" <dmg>

@eoyilmaz
Copy link
Owner

eoyilmaz commented Oct 22, 2024

@MStraeten thanks for the suggestion, I ran the codesign command with a slight modification (net.displaycal instead of org.displaycal):

codesign --sign - --verbose --deep --force --preserve-metadata=entitlements,requirements,flags,runtime -i "net.displaycal" DisplayCAL-3.9.14-macOS_arm64.dmg

I uploaded it, downloaded again, and it is still displaying the same error, and it still requires the com.apple.quarantine attr to be deleted.

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

No branches or pull requests

4 participants