diff options
author | Micah Lee <micah@micahflee.com> | 2021-12-22 14:04:34 -0800 |
---|---|---|
committer | Micah Lee <micah@micahflee.com> | 2021-12-22 14:04:34 -0800 |
commit | 8a04472022a7ddc37d40acc2b71247aed08ebc8f (patch) | |
tree | 6de4eac92eea4c6aa93c219c60e7bc8424535bd0 /RELEASE.md | |
parent | 40b4d8f84cf2ccdabc24eda81f4aa5166d268b05 (diff) | |
download | onionshare-8a04472022a7ddc37d40acc2b71247aed08ebc8f.tar.gz onionshare-8a04472022a7ddc37d40acc2b71247aed08ebc8f.zip |
Use cx_freeze for making macOS dmg
Diffstat (limited to 'RELEASE.md')
-rw-r--r-- | RELEASE.md | 18 |
1 files changed, 8 insertions, 10 deletions
@@ -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 |