indygreg / apple-platform-rs

Rust crates supporting Apple platform development
565 stars 38 forks source link

Support easier integration of rcodesign with other tools #120

Open netomi opened 9 months ago

netomi commented 9 months ago

We developed a notarization service that allows to notarize files via a web API in a secured environment, this service is available at: https://github.com/eclipse-cbi/macos-notarization-service

So far we used the xcode utilities to do the heavy lifting (notarytool / stapler), but that means that the service has to run on a macos machine. In order to be able to deploy and run that anywhere, we were looking into your amazing rcodesign tool and tried to integrate it in our service.

The result so far can be found here: https://github.com/eclipse-cbi/macos-notarization-service/pull/278 The relevant part to access rcodesign can be found here: https://github.com/eclipse-cbi/macos-notarization-service/pull/278/files#diff-6987d3b8c7ca9d95cb15429174615f1a2831ecf176d064c8cf0270242cd50592

While in general it works, there are a couple of things that would make the integration easier and I wanted to discuss whether there would be interest to integrate them:

waiting up to 1s for package upload 81090140-48d6-4f89-81a0-f7b9d00b6603 to finish processing
poll state after 0s: InProgress
poll state after 4s: InProgress

I would also be happy to work on a PR, please let me know what you think about these changes.