Home/Without a Mac/How do I publish a Tauri app to the Mac App Store or distribute a dmg without a Mac?

How do I publish a Tauri app to the Mac App Store or distribute a dmg without a Mac?

Updated · airankrush

The short answer

Short answer: a dmg distributed from your website is signed with a Developer ID certificate and notarized. The Mac App Store version needs the sandbox enabled, an embedded provisioning profile, and a separate set of certificates to sign it into a pkg for upload. Packaging, signing and uploading all use tools on macOS. The store listing is filled in through a browser.

Which steps require macOS

What must be on macOS

  • Building and signing the app bundle, generating the signed installer package with xcrun productbuild, and uploading with xcrun altool. xcrun is the tool entry point that ships with Xcode.

What you can do in a browser on Windows

  • Register the App ID in the developer account (the Bundle ID matching identifier in tauri.conf.json) and create the provisioning profile. Tauri's App Store docs note that macOS store distribution uses a provisioning profile of the "Mac App Store Connect" type.
  • Create the app record in App Store Connect, fill in the metadata, and create an API key.
  • Write Entitlements.plist and the store-only configuration file. They are text.

Decide first whether the store is worth it

The App Sandbox restricts things like file access and calling external programs. For apps that depend on those abilities, distributing a dmg from your website may be the more realistic choice, and that route only needs signing and notarization.

How to do it on a remote Mac

  1. Create a separate config for the store version

    The docs suggest putting settings that belong only to the store version in src-tauri/tauri.appstore.conf.json, setting bundle.macOS.entitlements and bundle.macOS.files there, and merging it in at build time with --config. That way the website version and the store version do not interfere with each other. In addition, the main config needs bundle > category set so the app is filed under the right category in the store.

  2. Write the sandbox entitlements file

    Entitlements.plist contains at least three entries:

    • com.apple.security.app-sandbox set to true. In the docs' words: your app must include the App Sandbox capability to be distributed in the App Store.
    • com.apple.application-identifier set to "Team ID.app identifier".
    • com.apple.developer.team-identifier set to the Team ID.

    If the app also needs entitlements such as network access or file read/write, add them one by one following Apple's sandbox documentation.

  3. Embed the provisioning profile

    Place the downloaded provisioning profile into the app bundle through bundle.macOS.files. The target file name is embedded.provisionprofile.

  4. Declare encryption compliance

    Add ITSAppUsesNonExemptEncryption to src-tauri/Info.plist, set to true or false depending on whether the app uses encryption. This is an export compliance requirement. If you leave it out, you have to answer the question by hand in App Store Connect after every upload.

  5. Build the universal app bundle

    The command given in the docs:

    npm run tauri build -- --bundles app --target universal-apple-darwin --config src-tauri/tauri.appstore.conf.json

    It produces an app that supports both Apple silicon and Intel. The docs specifically flag that code signing must already be configured for this step, with Apple Distribution as the signing certificate.

  6. Generate the signed pkg

    xcrun productbuild --sign "Installer signing identity" --component "target/universal-apple-darwin/release/bundle/macos/AppName.app" /Applications "AppName.pkg"

    The docs stress that the PKG has to be signed with a Mac Installer Distribution certificate, which is not the same certificate used to sign the app. Both certificates have to be installed in the remote Mac's keychain.

  7. Upload

    xcrun altool --upload-app --type macos --file "AppName.pkg" --apiKey KEY_ID --apiIssuer ISSUER_ID

    After upload Apple validates the package. Once it passes, it is available in TestFlight, and you then submit it for review in App Store Connect.

FAQ

Does the store version still need notarization?

The store version does not go through notarization. After upload, Apple validates and reviews it. Notarization is for software signed with Developer ID and distributed outside the store. The two versions also use different certificates, so do not mix them up.

Some features stopped working after I enabled the sandbox

Most likely the matching sandbox entitlement is missing, or the feature itself is not allowed inside the sandbox. Go through Apple's sandbox entitlement documentation item by item and add entitlements. Features that truly cannot work have to be removed from the store version, or you switch to website distribution.

Can one remote Mac produce both the website version and the store version?

Yes. Both sets of certificates can sit in the keychain at the same time. Build and notarize the website version with the default config, and add --config pointing to the store-only config for the store version. Before the rental ends, export the certificates as .p12 and keep them yourself. The keychain is not kept once the machine is reclaimed.

Are you responsible if review fails?

No. We provide a remote Mac located in the United States and an admin account. We do not handle store submission for you, and we do not guarantee review outcomes.

Pricing and availability: see the plans page · Help center (中文) · Refund policy (中文) · Telegram Contact support

Back to home · All no-Mac guides