Skip to content

chore: 0.4.0 release blockers — linux-rpm manifest, linux bundle deps, min_app_version - #239

Merged
EVWorth merged 1 commit into
mainfrom
chore/0.4.0-release-blockers
Jul 20, 2026
Merged

EVWorth merged 1 commit into
mainfrom
chore/0.4.0-release-blockers

Conversation

@EVWorth

@EVWorth EVWorth commented Jul 20, 2026

Copy link
Copy Markdown
Owner

What

Three pre-0.4.0 fixes from the update-system audit, smallest-first. Unblock the Bazzite auto-update path + add clean-install dependency metadata.

Diff

.github/workflows/release.yml |  +12
src-tauri/tauri.conf.json     |  +19 / -1

Why

The v0.3.4 release ships a 12 MB SQLPilot-0.3.4-1.x86_64.rpm to the GitHub release page. Tauri-action's bundle.targets = "all" builds it. But latest.json doesn't include a linux-rpm platform key — the bash manifest generator's case statement was missing the rpm branch, default-case * was silently skipping it. Bazzite / Fedora / atomic-distro users installing via rpm-ostree install foo.rpm get no in-app update offer when 0.4.0 ships.

Two more pre-0.4.0 polish items in the same PR since the diff is small.

Changes

1. release.yml — add linux-rpm + linux-aarch64 to manifest case

*amd64.AppImage)   key="linux-x86_64"  ;;
*amd64.deb)        key="linux-deb"      ;;
*aarch64.rpm)      key="linux-aarch64" ;;   # NEW
*x86_64.rpm)       key="linux-rpm"     ;;   # NEW

Verified against synthetic .sig files for all 8 Tauri-action output patterns. All map correctly.

Pattern note: Tauri-action's rpm filename uses SQLPilot-0.4.0-1.x86_64.rpm (period before arch, not underscore). .deb uses SQLPilot_0.4.0_amd64.deb (underscore). Different conventions, so the patterns differ.

2. release.yml — add min_app_version to manifest

PREV_TAG=$(git tag --sort=-v:refname 2>/dev/null | grep -v "^${TAG}$" | head -1 | sed 's/^v//')
if [ -n "$PREV_TAG" ]; then
  echo "  \"min_app_version\": \"$PREV_TAG\"," >> update-manifest.json
fi

Auto-tracks the most recent prior git tag. For the 0.4.0 release this resolves to 0.3.4. Plugin 2.10.1 honors this: app versions below min_app_version don't see the update offer. Falls back to omitting the field on the very first release.

3. tauri.conf.json — Linux bundle deps + publisher + createUpdaterArtifacts

"bundle": {
  "active": true,
  "createUpdaterArtifacts": true,           // NEW (canonical flag per Tauri docs)
  "publisher": "EVWorth",                  // NEW (was 'Unknown' by default)
  "linux": {                                // NEW block
    "deb": { "depends": ["libwebkit2gtk-4.1-0", "libgtk-3-0", "librsvg2-common"] },
    "rpm": { "depends": ["webkit2gtk4.1", "gtk3", "librsvg2"] }
  }
}
  • createUpdaterArtifacts: tauri-action v1.0.0 implicitly enables this, but the canonical config lives in tauri.conf.json.
  • publisher: surfaces in .rpm metadata + macOS Info.plist.
  • linux.deb.depends / linux.rpm.depends: prevents install-time dependency-resolution failures on minimal systems (Bazzite base, fresh Debian). Matches the libs Tauri-action's own CI matrix uses.

Verification

  • npx vitest run (full): 77 / 1462 pass
  • npm run type-check: 0 errors
  • npx eslint src: 0 errors (172 pre-existing warnings, unrelated)
  • npx dprint check: clean
  • Synthetic .sig fixture test: all 8 patterns match expected keys

Out of scope (deferred to 0.4.1 / 0.5.0)

Per the audit:

The Bazzite auto-update story is now functional for users on 0.3.4 (after merge + a fresh release).

…, min_app_version

Three pre-0.4.0 fixes from the update-system audit, smallest-first
since they unblock the Bazzite auto-update path:

release.yml: bash manifest generator
- Add linux-rpm + linux-aarch64 to the case statement. The .rpm IS
  built and uploaded to the GitHub release (Tauri-action's 'all'
  bundle target), but the case generator's default branch was
  silently skipping it. Bazzite / Fedora / atomic-distro users on the
  .rpm install path have been getting no in-app update offers.
- Use '*.x86_64.rpm' / '*.aarch64.rpm' patterns (period, not
  underscore) to match Tauri-action's actual filename
  'SQLPilot-0.4.0-1.x86_64.rpm'.
- Add min_app_version to the manifest. Computed from the most recent
  prior git tag (skips the current one), so each release auto-tracks
  the previous one. Omitted on the very first release if there's no
  prior tag. Plugin 2.10.1 honors this: app versions below
  min_app_version don't see the update offer.

tauri.conf.json: bundle config
- createUpdaterArtifacts: true. Tauri-action v1.0.0 effectively
  enables this implicitly, but per the docs (v2.tauri.app/plugin/
  updater/#tauri-configuration) the canonical config lives in
  tauri.conf.json. Surfaces intent; doesn't break if tauri-action
  defaults shift.
- publisher: 'EVWorth'. Surfaces in .rpm metadata + macOS Info.plist.
  Default is 'Unknown' which looks unprofessional in install dialogs.
- bundle.linux.deb.depends: libwebkit2gtk-4.1-0, libgtk-3-0,
  librsvg2-common. Without these, 'apt install ./foo.deb' on a
  minimal system fails with unsatisfiable deps. Same deps
  Tauri-action's CI matrix uses.
- bundle.linux.rpm.depends: webkit2gtk4.1, gtk3, librsvg2. Without
  these, 'rpm-ostree install' on a minimal Bazzite install triggers
  an interactive transaction asking the user to add deps. With
  these declared, the transaction is non-interactive.

Verified the bash case logic against a synthetic .sig file set
covering all 8 Tauri-action output patterns. All map correctly.

Out of scope (deferred to 0.4.1 / 0.5.0):
- B3 (installUpdate guard against running queries + unsaved buffers)
- B4 (SQLite migration framework)
- B5 (proper migration runner with PRAGMA user_version)
- ARCHITECTURE.md sync (doc-keeper territory)
@EVWorth
EVWorth merged commit a4a4465 into main Jul 20, 2026
9 checks passed
@EVWorth
EVWorth deleted the chore/0.4.0-release-blockers branch July 20, 2026 03:47
EVWorth added a commit that referenced this pull request Jul 20, 2026
After #239 set 'bundle.createUpdaterArtifacts: true' in
tauri.conf.json, tauri-action v1.0.0 began attempting to sign
artifacts during the BUILD step itself (not just the
generate-update-manifest step).

The workflow passed TAURI_SIGNING_PRIVATE_KEY only to the
generate-update-manifest step. With createUpdaterArtifacts: true,
the build step needs the env var too, or tauri-action aborts
with:

  'A public key has been found, but no private key. Make sure to
   set TAURI_SIGNING_PRIVATE_KEY environment variable.'

Effect: all 4 build matrix entries (Linux, Windows, macOS x2)
failed at the 'Build and publish' step on the v0.4.0 release
tag push, with exit code 1. Run #29715589604.

Fix: add TAURI_SIGNING_PRIVATE_KEY + TAURI_SIGNING_PRIVATE_KEY_PASSWORD
to the build step's env block. Mirror what's already in the
generate-update-manifest step. Same pattern, same secret.

Safe: the env is only read by tauri-action when 'createUpdaterArtifacts'
is set in tauri.conf.json. Otherwise it's ignored. Forward-compatible
to a future where the manifest step also re-signs (defensive).

Out of scope: rotating the signing key, switching to a different
key, or using Windows code signing (separate WINDOWS_CERTIFICATE
secret already wired).
EVWorth added a commit that referenced this pull request Jul 21, 2026
Capture today's release-cut lessons so the next person doesn't
re-discover them. Five gotchas documented with symptoms, root
cause, fix, and recovery:

1. tauri-action v1.0.0 creates duplicate release candidates
   with strategy.matrix (parallel jobs racing on draft creation).
   Fix path: split build/upload jobs, or manually publish the
   correct Draft via gh api PATCH after the run.

2. `bundle.createUpdaterArtifacts: true` requires
   TAURI_SIGNING_PRIVATE_KEY on the BUILD step (not just the
   manifest step). Adding the flag without updating the workflow
   causes all 4 matrix builds to fail with 'no private key'.

3. `linux-rpm` platform key was silently absent from
   `latest.json` before #239. Bash case statement needed an
   explicit `*_x86_64.rpm` branch.

4. `bundle.linux.{deb,rpm}.depends` should be declared in
   `tauri.conf.json` for clean installs. Without these, fresh
   installs hit unsatisfiable-deps transaction failures.

5. Tag re-push recovery: if a release run produces a broken
   release, delete + re-push the tag (existing tags don't re-trigger).

Cross-linked to issues #242 (race condition), #243 (this doc),
#244 (Bazzite), and PRs #239 / #241.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant