2020-04-04 21:15:38 +03:00
Steps to reproduce to deploy a new version:
2020-10-11 21:22:17 +03:00
Signing and Notarizing pkg help:
https://www.davidebarranca.com/2019/04/notarizing-installers-for-macos-catalina/
2020-10-11 22:25:35 +03:00
* Package UI
* Deploy UI
* Build the Driver in Release mode
* Build in app Release mode
* Product > Archive
* Window > Organizer
* Select build > Distribute app > Developer ID > Next next next
* Wait for notarization to happen > Export notarized .app to native/app/update
* Goto native/app/update
* Check for: `codesign -dvv eqMac.app`
2020-10-11 21:22:17 +03:00
2020-10-11 22:25:35 +03:00
* `open ../eqMac.pkgproj`
2020-10-11 21:22:17 +03:00
2020-10-11 22:25:35 +03:00
* Build the .pkg move it to the /native/update dir: `mv ../build/eqMac.pkg eqMac_unsigned.pkg`
2020-10-11 21:22:17 +03:00
2020-10-11 22:25:35 +03:00
* Codesign the pkg file: `productsign --sign 'Developer ID Installer: Bitgapp Ltd.' eqMac_unsigned.pkg eqMac.pkg`
2020-10-11 21:22:17 +03:00
2020-10-11 22:25:35 +03:00
* Make a copy for the update zip file: `cp eqMac.pkg eqMac.sparkle_interactive.pkg`
2020-10-11 21:22:17 +03:00
2020-10-11 22:25:35 +03:00
* Check codesign with: `pkgutil --check-signature eqMac.pkg` (also for the sparkle_interactive.pkg)
2020-10-11 21:22:17 +03:00
2020-10-25 22:20:13 +03:00
* Send pkg for notarization: `xcrun altool --notarize-app --primary-bundle-id "com.bitgapp.eqmac.pkg" --file "~/Programming/Bitgapp/eqMac/native/update/eqMac.pkg" --asc-provider "JZA6C97KJA" --username "APPLE_EMAIL" --password "APPLE_APP_PASSWORD"`
2020-10-11 22:25:35 +03:00
Copy the RequestUUID!!
2020-10-11 21:22:17 +03:00
2020-10-11 22:25:35 +03:00
* Keep checking for notarization status with until Package Approved: `xcrun altool --username "APPLE_EMAIL" --password "APPLE_APP_PASSWORD" --notarization-info COPIED_RequestUUID`
2020-10-11 21:22:17 +03:00
2020-10-11 22:25:35 +03:00
* Stamp the notarized pkg with ticket:
`xcrun stapler staple "/Users/nodeful/Programming/Bitgapp/eqMac/native/update/eqMac.pkg"`
`xcrun stapler staple "/Users/nodeful/Programming/Bitgapp/eqMac/native/update/eqMac.sparkle_interactive.pkg"`
2020-10-11 21:22:17 +03:00
2020-10-11 22:25:35 +03:00
* Check the valid ticket (Look for "The validate action worked!"):
`stapler validate --verbose "/Users/nodeful/Programming/Bitgapp/eqMac/native/update/eqMac.sparkle_interactive.pkg"`
2020-10-11 21:22:17 +03:00
2020-10-11 22:25:35 +03:00
* Make a zip for Spakle updated: `zip -r -X eqMac.zip eqMac.sparkle_interactive.pkg`
* Sparkle Sign: `sign_update eqMac.zip`
2020-10-11 21:22:17 +03:00
replace the sparkle:edSignature and length in update.xml file
2020-10-11 22:25:35 +03:00
* Set correct version and date in update.xml file
* Update Changelog.md
* Run: `./generate-changelog.sh`
* Copy the generated update.html content to the update.xml
* `./deploy.sh`