chia-blockchain/build_scripts/macos_notarize_build.txt
Gene Hoffman a5c0ab8d33 Add code signing and time stamping to Windows installer (#280)
* Update cert, update changelog
* Timestamp and verify windows installer
* Update package-lock.json
* It is Chia-Blockchain...
* Add path to signtool.exe
* Remove Start-Process
* use just /t for timestamp
2020-06-08 17:17:48 -07:00

19 lines
729 B
Bash

#!/bin/bash
# How to notarize
echo "Ask for username and password - password should be an app specific password"
# Generate app specific password https://support.apple.com/en-us/HT204397
xcrun altool --notarize-app -f Chia-0.1.X.dmg --primary-bundle-id net.chia.blockchain -u username -p password
echo "xcrun altool --notarize-app; -should return REQUEST-ID, use it in next command"
echo "Wait until following command return a success message"
xcrun altool --notarization-info {REQUEST-ID} -u username -p password
echo "It can take a while, run it every few minutes"
echo "Once that is successful, execute the following command"
xcrun stapler staple Chia-0.1.X.dmg
echo "Validate DMG"
xcrun stapler validate Chia-0.1.X.dmg