ci(desktop): add multi-platform build and release workflow - #3
Merged
Conversation
Build the Tauri desktop client on native macOS / Ubuntu / Windows runners (Tauri cannot cross-compile) and collect all installers plus updater artifacts (latest.json + .sig) into a single draft GitHub Release. - Triggered by desktop-v* tags or manual dispatch - Updater signing via TAURI_SIGNING_PRIVATE_KEY repo secret - macOS built as a universal binary (arm64 + x86_64), unsigned for now - Linux target overrides (appimage/deb) come from tauri.linux.conf.json
There was a problem hiding this comment.
Pull request overview
Adds a new GitHub Actions workflow to build the Tauri v2 desktop client on native runners for macOS, Linux, and Windows, then publish the resulting installers/updater artifacts to a single draft GitHub Release.
Changes:
- Introduces a tag-triggered + manual-dispatch release pipeline for the desktop app.
- Builds per-OS artifacts via a matrix (macOS/Ubuntu/Windows) and uploads them to a draft release.
- Configures Node/Rust setup plus Linux system deps and Rust build caching.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Closed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds
.github/workflows/desktop-release.yml— a CI workflow that builds the Tauri v2 desktop client for macOS, Linux, and Windows and publishes all installers + updater artifacts to a single GitHub Release.Since Tauri cannot cross-compile, each OS builds on its own native runner via a matrix, using the official
tauri-apps/tauri-action.How it works
desktop-v*tag, or manualworkflow_dispatch(tag input)macos-latest(universal arm64+x86_64),ubuntu-22.04(appimage+deb),windows-latest(nsis+msi)latest.json+.sigTAURI_SIGNING_PRIVATE_KEY/TAURI_SIGNING_PRIVATE_KEY_PASSWORDrepo secrets (already configured)npm installinsrc/frontend; tauri'sbeforeBuildCommandbuilds the distSwatinem/rust-cachescoped todesktop/src-tauriRelease procedure
desktop/package.json,desktop/src-tauri/Cargo.toml,desktop/src-tauri/tauri.conf.json(keep in sync).desktop-vX.Y.Z.Scope notes / follow-ups
.github/workflows/is added — no changes to the read-onlydesktop/**source.APPLE_*signing secrets later to make it seamless.latest.jsonfor the Tauri updater. The client'supdate.rscurrently resolves the updater endpoint from the runtimeserver_base(backend-served). To have clients self-update from GitHub Releases instead, the updater endpoint/logic indesktop/src-taurimust be adjusted upstream — out of scope for this meta-only PR.check-i18n.mjs+tsc -b+vite build; if i18n/type checks are strict they may need attention on the first run.