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

Simplify signing, enable notarization #259

Merged
merged 1 commit into from
Sep 7, 2022

Conversation

igor-hnizdo
Copy link
Contributor

I have simplified signing and enabled notarization in docker with rcodesign (a Rust-based tool, fully open-source; but it does connect to Apple servers for notarization).

This tool enables notarization and signing fully in Docker on any OS, so it should work in CLI too.

There is some prep-work that needs to be done on Mac OS side and on Apple website; but after that, the signing and notarization works automatically.

It's not directly relevant to this commit, but I think you can also use it on Trezor Suite; a cursory glance there tells me that Trezor Suit is using electron-notarize, which needs to be run on Mac OS; rcodesign does not need that.

Note that we need to use ldflags -s because of this issue of rcodesign - indygreg/apple-platform-rs#17

Copy link
Contributor

@tsusanka tsusanka left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great! Just a two tiny typo nit-picks.

I can't test it now, but I think we can take it from here.

I have simplified signing and enabled notarization in docker
with rcodesign (a Rust-based tool, fully open-source; but it does connect to Apple servers for notarization).

This tool enables notarization and signing fully in Docker on any OS,
so it should work in CLI too.

There is some prep-work that needs to be done on Mac OS side and on Apple website;
but after that, the signing and notarization works automatically.

It's not directly relevant to this commit, but I think you can also use it on Trezor Suite;
a cursory glance there tells me that Trezor Suit is using electron-notarize, which needs to be run on Mac OS;
rcodesign does not need that.

Note that we need to use ldflags -s because of this issue of rcodesign
https://github.com/indygreg/PyOxidizer/issues/636
@igor-hnizdo igor-hnizdo force-pushed the fix_sign_and_notarization branch from da28494 to 7bf4b21 Compare September 7, 2022 09:26
@tsusanka
Copy link
Contributor

tsusanka commented Sep 7, 2022

Moving the following work into #260. Thanks!

@tsusanka tsusanka merged commit f89d4d2 into trezor:master Sep 7, 2022
@tsusanka
Copy link
Contributor

tsusanka commented Sep 7, 2022

cc @matejkriz, @mroz22 and @vdovhanych for this part:

I have simplified signing and enabled notarization in docker with rcodesign (a Rust-based tool, fully open-source; but it does connect to Apple servers for notarization).

It's not directly relevant to this commit, but I think you can also use it on Trezor Suite; a cursory glance there tells me that Trezor Suit is using electron-notarize, which needs to be run on Mac OS; rcodesign does not need that.

We probably do not need to change that in Suite as it works fine but it is good to know, in case we would have some problems with the current solution.

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

Successfully merging this pull request may close these issues.

2 participants