This notarizes files using Apple's Notary API, which means that it can run on any OS.
Note that the archived binary must already be signed, see testdata/sign.sh, which unortunate is harder to do outside of a Macintosh. See buildpkg for a more complete setup using this library.
See the single test for a "how to use". Running that prints something ala:
2022/08/30 13:13:39 Submitting helloworld.zip with checksum a53c8738fdd28a3558057c8825f633860846773baae89cf3e0e36f12896393af
2022/08/30 13:13:48 Successfully uploaded file to S3 location https://notary-submissions-prod.s3.us-west-2.amazonaws.com/prod/AROARQRX7CZS3PRF6ZA5L:22395004-2418-4edc-bb06-661cca8cf6e0
2022/08/30 13:13:59 [1] Checking status of 22395004-2418-4edc-bb06-661cca8cf6e0
2022/08/30 13:14:12 [2] Checking status of 22395004-2418-4edc-bb06-661cca8cf6e0
2022/08/30 13:14:12 Notarization completed!
--- PASS: TestNotarizeZip (33.55s)