This is the bash script I used for building signed one
#!/bin/bash
# signing envs
export APPLE_SIGNING_IDENTITY="Developer ID Application: xxxx"
export APPLE_CERTIFICATE="base64 of the p12"
export APPLE_CERTIFICATE_PASSWORD="password of the p12"
# notarize envs
export APPLE_ID="apple@id"
export APPLE_PASSWORD="pass-word-1234-5678"
export APPLE_TEAM_ID="TEAMID"
# updater envs
export TAURI_PRIVATE_KEY="tauriprivatekey"
export TAURI_KEY_PASSWORD=""
echo "Building Mac App"
npm run tauri build -- --debug --verbose
it works perfectly when I commented out signing-envs and notarize-envs