Smriti Release Checklist
A tick-off list of everything that needs to happen outside the code
before tagging a release. The pipeline is Tauri-bundler based —
cargo tauri build produces .deb, .AppImage, .msi, .dmg from
the same tauri.conf.json and the GitHub Actions workflow at
.github/workflows/release.yml runs that on every v* tag push.
Two ways to cut a release:
- Automated (recommended for rc + stable):
scripts/release.ps1 v0.2.0-rc.3(Windows) orscripts/release.sh v0.2.0-rc.3(Linux/macOS). Bumps every manifest, commits, pushes, tags, pushes the tag. See Automated release below. - Manual: follow the Per-release checklist. Use this when the automation isn’t appropriate (e.g. you want a bespoke commit message, you’re amending a previous release, or you’re publishing from a non-master branch).
Where the version lives
Smriti’s user-facing version lives in two files. A third file updates itself when cargo runs:
| File | Field | Purpose |
|---|---|---|
Cargo.toml | [package] version (line ~16) | Engine crate version. Reported by cargo --version. |
src-tauri/tauri.conf.json | "version" (line ~4) | The Tauri app version. Drives .msi / .deb / .dmg package metadata, the Windows “About” panel, macOS bundle info. Most user-visible. |
Cargo.lock | (auto) | Rewritten by cargo update -p smriti when the engine bumps. Commit the diff. |
Files that look like they have a version but don’t matter for releases:
src-tauri/Cargo.toml— version is the placeholder"0.0.0". The Tauri build readstauri.conf.jsonfor the real version.src-ui/package.json— version is the placeholder"0.0.0". npm doesn’t publish anything from here.
Tag naming
Use strict SemVer 2.0 for tags. The leading v is a tag
convention; it does NOT appear in the version field inside files.
| Release kind | Tag | Manifest version | Notes |
|---|---|---|---|
| Stable | v0.2.0 | 0.2.0 | |
| Release candidate | v0.2.0-rc.3 | 0.2.0-rc.3 | The dot before the number is SemVer-correct; cargo, npm, and release.yml all handle it. |
| Beta | v0.2.0-beta.1 | 0.2.0-beta.1 | Same shape. |
Earlier tags in this repo used v0.2.0rc-2 (no dot, dash on wrong
side). That format is not strict SemVer and confuses tooling — prefer
-rc.N going forward.
Automated release
The fastest path. One command:
# Windows
scripts\release.ps1 v0.2.0-rc.3
# Linux / macOS
./scripts/release.sh v0.2.0-rc.3
What it does, in order:
- Validates the version format.
- Validates working tree is clean, on master, in sync with origin.
- Rewrites
[package] versioninCargo.toml. - Rewrites
"version"insrc-tauri/tauri.conf.json. - Runs
cargo update -p smritito refreshCargo.lock. - Shows the diff and pauses for confirmation.
- Commits
chore(release): vX.Y.Zand pushes to master. - Creates
vX.Y.Zannotated tag and pushes it. - Prints the URL of the running
release.ymlworkflow.
Flags:
-DryRun(PS) /--dry-run(sh) — show what would change without modifying anything.-NoTag(PS) /--no-tag(sh) — bump + commit + push only, skip the tag (useful when you want to make additional changes before tagging).-AllowDirty— proceed even if the working tree has uncommitted changes. Default is to refuse.
After the script finishes, see Post-tag steps.
Per-release checklist
Use this if you’re doing it by hand.
1. Pre-flight
-
cargo fmt --all --check -
cargo clippy --all-targets -p smriti -p smriti-tauri -- -D warnings -
cargo test -p smriti -p smriti-tauri -
npm run check --prefix src-uiandnpm run test --prefix src-ui -
npm run build --prefix src-uiproduces a cleandist/. -
cargo tauri buildproduces a working bundle locally. - Manual smoke test of the dev build: open a library, scan a folder, verify thumbnails / faces / map / search all render.
- Local Rust matches CI’s stable —
rustup update stableif you’ve fallen behind. Newer clippy versions catch new lints that older local toolchains miss; CI is on whatever stable was published last.
2. Bump the version
Update both files in lock-step:
-
Cargo.toml—[package] version -
src-tauri/tauri.conf.json—"version" -
cargo update -p smriti→ updatesCargo.lock
Commit with chore(release): vX.Y.Z.
3. Push the bump
-
git push origin master
4. Tag and push the tag
-
git tag -a vX.Y.Z -m "Smriti vX.Y.Z" -
git push origin vX.Y.Z
The v* tag triggers .github/workflows/release.yml, which:
- Builds Linux (
.deb,.AppImage), Windows (.msi), and macOS (.dmg) via the Tauri bundler. - Builds the optional
Smriti-Assets.zip(face models + GeoNames + ORT). - Renames every installer to a stable download name
(
Smriti-Windows-Setup.exe,Smriti-macOS-Apple-Silicon.dmg,Smriti-Ubuntu-Debian-x64.deb, plus the MSI, AppImage and RPM) and removes Tauri’s versioned originals, so each installer is attached once. The website and the in-app updater match these names. - Drafts a GitHub release with all artifacts attached.
5. Post-tag steps
While the workflow runs (~15–30 minutes):
- Watch the workflow at Actions → Release → run for vX.Y.Z. Every job must be green.
- Once drafted, open Releases → vX.Y.Z (Draft) and confirm:
- All expected artifacts attached (matrix output × 3 OSes + assets pack).
SHA256SUMSfile is attached and lists every artifact.- Release notes state that Windows/macOS builds are currently unsigned and give the exact More info → Run anyway / Open Anyway install path.
For release-candidate (-rc.N) tags
- Confirm the draft is marked as a pre-release. The workflow
detects the SemVer prerelease separator in the tag. For a
pre-release, the website’s
/releases/latest/download/...links keep pointing at the previous stable (which is what you want — rc users come find rc explicitly).
Smoke test
- Install at least one artifact on a clean VM. CI smoke tests cover binary launch; eye-on verification catches first-run UX regressions.
- On supported OSes, exercise open → scan → detail → slideshow → trash → restore → close/reopen, rapid library switching, and Timeline paging/selection/scroll anchors.
- Use real RAW/HEIC/TIFF/video files and actual ONNX inference. Verify CSP, removable-drive asset access and offline behavior in both Map and photo minimaps; inspect optional network traffic.
- Verify OS credential set/change/clear, legacy-key migration and locked/unavailable-store errors. Unit tests use a mock store.
- Exercise disk-full and interrupted import/export/delete on target filesystems, including Windows junctions. SQL failure tests are not power-loss certification.
- Verify upgrades from retained historical library fixtures and restore a backup. Recent migration tests do not cover every historical schema.
- Verify installer/update failure paths and trusted signing. Signing keys/certificates require maintainer setup; unsigned checksums alone do not establish authenticity.
- Confirm hosted dependency-audit jobs pass. The local CI script does not run Rust advisory/license audits.
Decoder timeout checks are cooperative: they cannot interrupt a native decoder inside a call. Include corrupt/oversized media in native testing; do not interpret a timeout setting as process isolation.
6. Publish
- Edit the draft release. Write release notes summarising what
changed (see
CHANGELOG.md). - Click Publish release.
7. Announce
- GitHub Discussions post.
- (Stable only)
r/selfhosted,r/privacy, Hacker News if it’s a significant release. Skip for rc.
Release automation
Releases are tag-driven. Commit the version bump directly on master,
then push the matching vX.Y.Z tag. The tag triggers
.github/workflows/release.yml, which builds and uploads the official
artifacts.
Do not use a GitHub Actions job to open a release PR for version bumps.
This repository keeps release ownership on master + tags so manual
patch releases and rc releases follow the same path.
One-time setup (skip if already done)
Branch protection on master
Settings → Branches → Add branch protection rule for master.
- Require PR before merging (1 approval is fine for a solo project).
- Require status checks matching the current CI workflow:
Format,Quality ubuntu-latest,Quality windows-latest,Quality macos-latest,MSRV (1.89)andSupply chain (audit + deny). - Require branches up-to-date before merging.
- Include administrators.
Private vulnerability reporting
- Settings → Code security and analysis → Private vulnerability
reporting → Enable.
SECURITY.mdalready points users at/security/advisories/new.
GitHub Discussions
- Settings → Features → Discussions → tick the checkbox.
- Create + pin a welcome post linking to
CONTRIBUTING.mdandPRIVACY.md.
Seed issue labels
- Actions tab → Sync issue labels → Run workflow. One-shot.
Re-run any time
.github/labels.ymlchanges.
GitHub Pages
- Settings → Pages → Source: GitHub Actions (not “Deploy
from a branch”).
.github/workflows/docs.ymlusesactions/deploy-pagesand needs this setting.
Explicitly not doing
- Microsoft Store / MSIX — significant packaging effort, low reach vs. the MSI path.
- Bundling InsightFace model weights — they’re downloaded by the user’s own setup script. Each user’s terms come from the upstream project, not Smriti.
Related scripts
scripts/release.ps1/scripts/release.sh— the automation described in Automated release.scripts/release_publish.ps1— older, more thorough version that also drivesghto watch the workflow and verify artifacts. Does NOT bump versions; assumes you’ve already done that. Useful when you want to monitor the build from the terminal.scripts/release_local.ps1/scripts/release_local.sh— runs the release build locally for smoke testing before tagging.scripts/ci_local.sh— runs the full CI gate locally (fmt + clippy + test + frontend).