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

signing app bundles #550

Open
caarlos0 opened this issue Feb 22, 2025 · 1 comment
Open

signing app bundles #550

caarlos0 opened this issue Feb 22, 2025 · 1 comment
Labels
enhancement New feature or request

Comments

@caarlos0
Copy link
Contributor

What would you like to be added:

Hey, first of all, thanks for this great tool!

I recently integrated it into GoReleaser, and it works quite well :)

My suggestion is probably kinda big: the ability to sign and notarize .apps.

Why is this needed:

If you want to ship a macos .app file, signing and notarizing the binary is not enough. It actually seems to be worse than doing nothing for some reason - macos thinks the app is corrupted and wants to trash it.

as far as I've played with, it seems that

xcrun notarytool submit my-app-$(version).zip --keychain-profile "foobar" --wait

creates a Contents/_CodeSignature/CodeResources XML file - not sure if it signs the binary as well or not.

This file seems to contain the hashes of every file inside the app, plus some rules I don't really understand.

Not sure how hard it is to replicate this without relying on macOS - but it would be awesome to have this, and I'm willing to help building/testing it if you're up to!

Additional context:

Thanks again for this great project!

@caarlos0 caarlos0 added the enhancement New feature or request label Feb 22, 2025
@vedantmgoyal9
Copy link

https://github.com/indygreg/apple-platform-rs/tree/main/apple-codesign supports signing app bundles and dmgs without relying on macos. we can refer to its implementation to get an idea.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
Status: No status
Development

No branches or pull requests

2 participants