Skip to content

Building a distribution ready CEmu .app for macOS

Adrien Bertrand edited this page Mar 29, 2020 · 3 revisions

To make sure CEmu launches correctly on recent macOS versions (especially 10.15/Catalina):

  1. Build it normally
  2. cd where the built .app is.
  3. macdeployqt CEmu.app
  4. sudo codesign --deep --force --verify --verbose --sign "Developer ID Application: Adrien Bertrand (Z3B7V95FNU)" --timestamp --options runtime CEmu.app
  5. ditto -ck --rsrc --sequesterRsrc CEmu.app CEmu.zip
  6. xcrun altool --notarize-app --primary-bundle-id "com.adriweb.CEmu" --username "..." --asc-provider "..." -t osx --file CEmu.zip
  7. Get the Request UUID from the command above
  8. Wait for a while (check with xcrun altool --notarization-info [RequestUUID] --username "...")
  9. Once it's OK, xcrun stapler staple CEmu.app

To compress it into a .dmg:

  1. hdiutil create -volname "CEmu" -srcfolder "CEmu.app" -ov -format UDZO "CEmu_macOS.dmg" (or try with UDBZ?)
  2. sudo codesign --deep --force --verify --verbose --sign "Developer ID Application: Adrien Bertrand (Z3B7V95FNU)" --timestamp --options runtime CEmu_macOS.dmg
  3. xcrun altool --notarize-app --primary-bundle-id "com.adriweb.CEmu" --username "..." --asc-provider "..." -t osx --file CEmu_macOS.dmg
  4. Get the Request UUID from the command above
  5. Wait for a while (check with xcrun altool --notarization-info [RequestUUID] --username "...")
  6. Once it's OK, xcrun stapler staple CEmu_macOS.dmg

(to get asc-provider (use the short name) -> xcrun altool --list-providers --username "...")

References: