Signing and Notarizing Tauri Apps
If you're building an app (for Apple platforms) with Tauri (or pretty much any similar tool) then you're going to need to set up developer credentials.
The Tauri website provides instructions but they're kind of ambiguous and needlessly complicated, so having gone through the process, I thought I'd try to explain a simpler option.
You'll need XCode and an Apple Developer account
All of this assumes you're a registered developer and you have XCode installed. If not, then go do that. Tauri's instructions similarly require you to be a registered developer, and you can't really build a Tauri app without installing XCode.
Signing Identity
Run this command in a terminal:
billing-report-viewer % security find-identity -v -p codesigning
If you get something like this, you're good to go.
1) XXXXXXXXXXXXXXXXXXXXXXXXXXX "Developer ID Application: ..."
If not, in XCode's Settings dialog, go to Accounts and click Manage Certificates and use the + button to install all the stuff you don't already have (and if you have stuff that's borked, just install new ones).
Once you've done all this you should be able to run the preceding command.
The "XXXXXX" bit goes inside tauri.config.json as
bundle.macOS.signingIdentity.
Notarization
In the Apple dev portal…
Note: you may need to request API access along the way (I did)
Go to Users and Access > Integrations > Team Keys
Click the + button, give your key a name and pick Developer access.
Now download the key and put it somewhere safe on your machine and set up the following environment variables:
APPLE_API_ISSUER=the value under Issuer ID (above the word Active)
APPLE_API_KEY=the KEY ID in the table for the file you downloaded
APPLE_API_KEY_PATH=the path do the file you downloaded
I just create a package.json command to export these variables.