Repository navigation
Description
What
tauri.conf.json now has bundle.createUpdaterArtifacts: true (added in #239). When this flag is true, [email protected] reads TAURI_SIGNING_PRIVATE_KEY from the build step's environment to sign artifacts during build — not just during the manifest-generation step.
The Tauri docs (https://v2.tauri.app/plugin/updater/#tauri-configuration) imply the flag is safe to enable, but don't make clear that the build step (not the manifest step) needs the signing env var.
Symptom
The v0.4.0 release run failed at the build step on all 4 matrix entries:
A public key has been found, but no private key. Make sure to set TAURI_SIGNING_PRIVATE_KEY environment variable.
[error]Command "npm ["run","tauri","build","--","--target","x86_64-apple-darwin"]" failed with exit code 1
Root cause: the release workflow set TAURI_SIGNING_PRIVATE_KEY only on the generate-update-manifest step, where npx tauri signer sign runs. After createUpdaterArtifacts: true, the bundler ALSO needs the private key during the build step to produce .sig files alongside each binary.
Fix (already shipped)
PR #241 added the env var to the build step. v0.4.0 release now produces a complete signed asset set (17 files).
What this issue is
This is a doc-only issue. Capture the gotcha in docs/RELEASING.md (or wherever release process is documented) so the next person who enables createUpdaterArtifacts: true (or someone running an older version of the workflow who disabled createUpdaterArtifacts) doesn't trip on the missing env var again.
Proposed content for docs/RELEASING.md
Add a 'Release pipeline gotchas' section with at minimum:
### `bundle.createUpdaterArtifacts: true` requires the signing key on the build step
When this flag is set in `tauri.conf.json`, the Tauri bundler signs
artifacts during `tauri build`. That means:
- `TAURI_SIGNING_PRIVATE_KEY` MUST be in the **build step's** `env:` block, not just the manifest step's.
- `TAURI_SIGNING_PRIVATE_KEY_PASSWORD: ""` (empty string) is correct for our setup (minisign default).
Symptoms when missing:
'A public key has been found, but no private key. Make sure to set
TAURI_SIGNING_PRIVATE_KEY environment variable.'
Reference: PR #241 fixed this for v0.4.0.
Why this issue exists as a separate ticket
The fix is in. The lesson isn't. New contributors and future agents touching the workflow should be able to find this without re-deriving from git log.
Acceptance criteria
-
docs/RELEASING.md(or equivalent) exists and contains the createUpdaterArtifacts gotcha - Cross-linked from
.opencode/AGENTS.mdor wherever release work is described - Verified by re-reading the doc after a clean state
Related
- chore: 0.4.0 release blockers — linux-rpm manifest, linux bundle deps, min_app_version #239 — PR that flipped the flag
- fix(ci): pass TAURI_SIGNING_PRIVATE_KEY to tauri build step #241 — PR that added the env var to the build step
- v2.tauri.app/plugin/updater/#tauri-configuration (upstream docs)
Activity
docs: add RELEASING.md with v0.4.0 release gotchas (#245)
docs: cross-link createUpdaterArtifacts env-var gotcha (closes #243)
docs: cross-link createUpdaterArtifacts env-var gotcha (closes #243)
docs: cross-link createUpdaterArtifacts env-var gotcha (closes #243) (#…