From 8a04472022a7ddc37d40acc2b71247aed08ebc8f Mon Sep 17 00:00:00 2001 From: Micah Lee Date: Wed, 22 Dec 2021 14:04:34 -0800 Subject: Use cx_freeze for making macOS dmg --- RELEASE.md | 18 ++++++++---------- 1 file changed, 8 insertions(+), 10 deletions(-) (limited to 'RELEASE.md') diff --git a/RELEASE.md b/RELEASE.md index 4dcd1770..19fc40dd 100644 --- a/RELEASE.md +++ b/RELEASE.md @@ -112,25 +112,23 @@ This will create `desktop/windows/OnionShare-$VERSION.msi`, signed. ## macOS -Set up the development environment described in `README.md`. And install `create-dmg`: +Set up the development environment described in `README.md`. -```sh -brew install create-dmg -``` - -Run the macOS build script: +Then build an executable, make it a macOS app bundle, and package it in a dmg: ```sh -poetry run ./package/macos/build.py --with-codesign +poetry run python setup-freeze.py bdist_dmg ``` +The will create `build/OnionShare.dmg`. + Now, notarize the release. You must have an app-specific Apple ID password saved in the login keychain called `onionshare-notarize`. -- Notarize it: `xcrun altool --notarize-app --primary-bundle-id "com.micahflee.onionshare" -u "micah@micahflee.com" -p "@keychain:onionshare-notarize" --file macOS/OnionShare.dmg` +- Notarize it: `xcrun altool --notarize-app --primary-bundle-id "com.micahflee.onionshare" -u "micah@micahflee.com" -p "@keychain:onionshare-notarize" --file build/OnionShare.dmg` - Wait for it to get approved, check status with: `xcrun altool --notarization-history 0 -u "micah@micahflee.com" -p "@keychain:onionshare-notarize"` -- After it's approved, staple the ticket: `xcrun stapler staple macOS/OnionShare.dmg` +- After it's approved, staple the ticket: `xcrun stapler staple build/OnionShare.dmg` -This will create `desktop/macOS/OnionShare.dmg`, signed and notarized. +This will create `desktop/build/OnionShare.dmg`, signed and notarized. ## Source package -- cgit v1.2.3-54-g00ecf