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 withxcrun altool.xcrunis 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
identifierintauri.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.plistand 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
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, settingbundle.macOS.entitlementsandbundle.macOS.filesthere, 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 needsbundle > categoryset so the app is filed under the right category in the store.Write the sandbox entitlements file
Entitlements.plistcontains at least three entries:com.apple.security.app-sandboxset to true. In the docs' words: your app must include the App Sandbox capability to be distributed in the App Store.com.apple.application-identifierset to "Team ID.app identifier".com.apple.developer.team-identifierset 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.
Embed the provisioning profile
Place the downloaded provisioning profile into the app bundle through
bundle.macOS.files. The target file name isembedded.provisionprofile.Declare encryption compliance
Add
ITSAppUsesNonExemptEncryptiontosrc-tauri/Info.plist, set totrueorfalsedepending 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.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.jsonIt 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.
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.
Upload
xcrun altool --upload-app --type macos --file "AppName.pkg" --apiKey KEY_ID --apiIssuer ISSUER_IDAfter 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.
Related
- How do I sign and notarize a Tauri app for macOS without a Mac?
- How do I build a macOS .app and dmg for a Tauri app without a Mac?
- How do I publish an app to the App Store without a Mac?
- Can I sign in with my own Apple Developer account on a rented Mac?
Pricing and availability: see the plans page · Help center (中文) · Refund policy (中文) · Telegram Contact support