Release scripts: default key path, password prompt #27

Merged
mett merged 1 commit from fix/release-key-prompt into main 2026-10-29 15:43:59 +01:00
Owner

Running scripts/release.sh failed with "set TAURI_SIGNING_PRIVATE_KEY_PATH". The scripts now find ~/.tauri/cushion.key by default and ask for the password, so nothing has to be exported (the docs only showed bash export, and you use fish).

They check key and password with a scratch signature before building, so a typo fails at once. Also fixed: Tauri rejects the key and the key path set together, which made that check fail.

Tests

  • bash -n. Wrong password: stops immediately. Right password: gets past the check and starts the build. No key at the path: clear message.
  • The interactive password prompt and the Windows script are not tested here (no terminal for read, no Windows).

🤖 Generated with Claude Code

Running `scripts/release.sh` failed with "set TAURI_SIGNING_PRIVATE_KEY_PATH". The scripts now find `~/.tauri/cushion.key` by default and ask for the password, so nothing has to be exported (the docs only showed bash `export`, and you use fish). They check key and password with a scratch signature before building, so a typo fails at once. Also fixed: Tauri rejects the key and the key path set together, which made that check fail. ## Tests - `bash -n`. Wrong password: stops immediately. Right password: gets past the check and starts the build. No key at the path: clear message. - The interactive password prompt and the Windows script are not tested here (no terminal for `read`, no Windows). 🤖 Generated with [Claude Code](https://claude.com/claude-code)
- The key defaults to ~/.tauri/cushion.key and the password is asked for
  when TAURI_SIGNING_PRIVATE_KEY_PASSWORD isn't set, so nothing has to be
  exported (the docs' `export` didn't help in fish anyway).
- A scratch signature checks key and password before the build, so a typo
  fails at once instead of after compiling.
- TAURI_SIGNING_PRIVATE_KEY_PATH is unset once the key is loaded: Tauri
  refuses the key and the path together.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
mett merged commit 84ed9d1d0e into main 2026-10-29 15:43:59 +01:00
Sign in to join this conversation.
No description provided.