Quick bash script that shows how to use the gon CLI tool on a remote OSX box to sign, package, staple, and notarize a product from releases.hashicorp.com. It also validates that the binary has been signed and notarized properly and can run on OSX 10.15.
Pre-reqs:
- Your OSX box should have OSX 10.15+, wget, Xcode 11.1+, and SSH access enabled
- Create a developer ID cert and add it to your login keychain on your OSX box
- Set the following environment variables locally:
SSH_USER
,SSH_PWD
, andREMOTE_IP
- Edit
config.json
locally and replace the variables with real values - Ensure
config.json
,script.sh
, andremote_script.sh
are all in the same local dir
To run:
- Run ./script.sh