Development, CI & Releases
Technical overview, local development commands, automated CI checks, and release workflows.
Tech Stack
Section titled “Tech Stack”- Desktop / Backend: Tauri v2, Rust (
reqwest,tokio,rusqlitebundled,cookie,mime_guess,tokio-util,chrono,uuid) - Frontend: React 19, TypeScript, Vite 8, Tailwind CSS v4, Radix UI primitives, Zustand,
cmdk - Code Editors: CodeMirror 6 +
cm6-graphql+graphql - Offline Fonts:
@fontsource-variable/inter&@fontsource-variable/jetbrains-mono - Testing: Vitest 5 + Testing Library (
jsdom) on frontend;cargo test(rusqlite+axumlocal HTTP + Git integration tests) on backend
Repository Structure
Section titled “Repository Structure”riftql/ docs/ Feature guides & documentation index scripts/ Release CLI (`release.mjs`) & tests src/ React UI, Zustand stores, CodeMirror wrappers, importers, GraphQL & utilities src-tauri/ Rust backend (`commands/`, `db/`, `http/`, `sync/`, `models.rs`) tickets/ MVP tickets (`T-001`–`T-020`) & v2 backlog (`T-101`–`T-104`) BRANDING.md Visual system, palette & copy guidelinesLocal Development & Verification
Section titled “Local Development & Verification”Prerequisites
Section titled “Prerequisites”- Node.js +
pnpm - Rust toolchain (
cargo/rustc) + platform Tauri v2 dependencies (WebView2 + MSVC Build Tools on Windows; standard WebKitGTK deps on Linux)
Commands
Section titled “Commands”# Install dependenciespnpm install
# Launch desktop app in dev modepnpm tauri dev
# Typecheck & production frontend buildpnpm typecheckpnpm build
# Run frontend unit & component testspnpm test
# Run Rust SQLite, Cookie Jar, Axum HTTP, and Git Sync integration testscargo test --manifest-path src-tauri/Cargo.tomlGitHub Actions CI & Releases
Section titled “GitHub Actions CI & Releases”- Continuous Integration (ci.yml): Runs on every push and PR to
main(pnpm typecheck,pnpm test,pnpm build, andcargo testacrossubuntu-22.04andwindows-latest). - Multi-Platform Release Builds (release.yml): Triggered by
v*Git tags or manualworkflow_dispatch. On tag pushes,prepare-releasecreates a single Draft Release with auto-generated release notes (and automaticprereleasedetection for tags containing-), thebuildmatrix attaches installers (plus signed updater artifacts whenTAURI_SIGNING_PRIVATE_KEYis configured), andpublishgenerates a single consolidatedlatest.jsonvia generate-latest-json.mjs and publishes the release once all platforms succeed:- Windows (
x64):.msi/.exe(latest.jsonuses NSIS.exefirst) - Linux (
x64):.deb/.rpm/.AppImage(latest.jsontargets portable.AppImagefor user-space self-updates) - macOS (
arm64&x64):.dmg+ signed.app.tar.gz
- Windows (
In-App Auto-Updater Signing Setup
Section titled “In-App Auto-Updater Signing Setup”To enable cryptographic one-click in-app updates via tauri-plugin-updater:
- Generate an Ed25519 keypair once locally:
Terminal window pnpm tauri signer generate -w ~/.tauri/riftql.key - Paste the generated
.pubkey string intoplugins.updater.pubkeyin tauri.conf.json (keepbundle.createUpdaterArtifacts: falsein the repo so local/unsigned builds work without the private key). - Add GitHub Actions repository secrets:
TAURI_SIGNING_PRIVATE_KEY: contents of the private.keyfileTAURI_SIGNING_PRIVATE_KEY_PASSWORD: key password (if set)
When TAURI_SIGNING_PRIVATE_KEY is present on a tagged release, the CI workflow enables createUpdaterArtifacts: true, signs every bundle, and uploads a consolidated latest.json right before publishing.
Automated Release CLI (pnpm release)
Section titled “Automated Release CLI (pnpm release)”Verifies clean git state + pnpm typecheck + pnpm test, bumps the version across package.json, src-tauri/tauri.conf.json, src-tauri/Cargo.toml, and src-tauri/Cargo.lock, creates commit chore(release): v<version> + annotated tag v<version>, and pushes to origin to start the automated Release workflow:
# Version targetspnpm release patch # bump patch (commits, tags & pushes)pnpm release minor # bump minorpnpm release major # bump majorpnpm release 0.4.0 # explicit version (or v0.4.0-rc.1)
# Useful flagspnpm release minor --dry-run # preview changes & git commands without modifying filespnpm release 0.4.0 --no-push # commit & tag locally; push manually laterpnpm release patch --skip-checks # skip pnpm typecheck & pnpm testpnpm release patch --allow-dirty # allow uncommitted changes in working treepnpm release --help # show usage & current versionWebsite & Documentation Site (website/)
Section titled “Website & Documentation Site (website/)”The public landing page and online docs live in website/, built with Astro + Starlight and sourcing content directly from docs/ at build time via website/scripts/sync-docs.mjs.
# Install website dependenciespnpm --dir website install
# Run local docs & landing dev serverpnpm --dir website dev
# Sync ../docs/*.md and build static HTML into website/dist/pnpm --dir website build
# Preview locally with Docker Compose (http://localhost:8080)docker compose -f website/docker-compose.yml up --buildDeploying to Dokploy
Section titled “Deploying to Dokploy”- Option A — Application (Dockerfile) (recommended):
- Build Type:
Dockerfile - Docker Context Path:
.(repository root so Docker accessespackage.json,docs/, andwebsite/) - Dockerfile Path:
website/Dockerfile - Container Port:
80 - Watch Paths:
website/**,docs/**
- Build Type:
- Option B — Docker Compose:
- Compose Path:
website/docker-compose.yml(binds${PORT:-8080}:80withcontext: ..anddockerfile: website/Dockerfile).
- Compose Path: