Developers · Run it yourself
Build the desktop app
Run the Tauri shell from a checkout, build an installer, and set up code signing.
This guide runs the Tauri desktop shell from a checkout, builds an installer, and sets up code signing for releases. How the shell works is described in About the desktop shell.
Before you begin
Install Node 22.12 or later, the same as for running from source.
Install Rust (stable) with rustup.
Install your system's toolchain from the Tauri 2 prerequisites:
System Toolchain Windows Microsoft C++ Build Tools, and WebView2 (preinstalled on Windows 11) macOS Xcode Command Line Tools Linux webkit2gtk4.1 and the other packages on Tauri's pageRun
npm installin the repository root.
Run the shell from a checkout
Build the web app and the server, then compile and open the shell:
Terminal npm run desktopThe first compile pulls the whole Tauri dependency tree and takes several minutes. Later ones take seconds. The window opens on the same app the server serves in a browser.
If a server is already running on port 17494, for example from
npm run dev, the shell uses it instead of starting another.
Build an installer
Build the installer for the system you are on:
Terminal npm run desktop:buildThis runs
scripts/desktop-stage.mjsfirst, which builds the app and server, installs the server's production dependencies, and downloads a pinned Node checked against nodejs.org's SHA-256.Find the installer in
src-tauri/target/release/bundle/. With--target, it is insrc-tauri/target/<TRIPLE>/release/bundle/.
Cross-building works only where Rust and the bundler support it. To build
for every system, push a v* tag: the release workflow in
.github/workflows/release.yml builds Windows (x64), macOS (Apple silicon
and Intel) and Linux (x64) installers on their own runners and attaches them,
with SHA256SUMS.txt, to a draft GitHub Release. Running the workflow by hand
builds the same installers as artifacts without touching Releases. See
RELEASING.md.
Sign the installers
The release workflow signs whatever it has secrets for, and nothing else.
macOS
You need an Apple Developer account ($99 a year).
In the repository's GitHub settings, add these secrets:
Secret Value APPLE_CERTIFICATEThe base64 of your exported .p12APPLE_CERTIFICATE_PASSWORDIts password APPLE_SIGNING_IDENTITYYour signing identity APPLE_IDYour Apple ID APPLE_PASSWORDAn app-specific password APPLE_TEAM_IDYour team ID Push a release tag. The build is signed with your Developer ID and notarized.
Before publishing, install the signed build and check that it starts its server.
A Developer ID build adds src-tauri/tauri.signed.conf.json, which turns on
the hardened runtime that notarization requires. Under it, Node's JIT and its
loading of better-sqlite3 need the entitlements in
src-tauri/Entitlements.plist (allow-jit,
allow-unsigned-executable-memory, disable-library-validation), which every
build embeds.
An ad-hoc build keeps the hardened runtime off, because with it on, an ad-hoc
signature stops the bundled Node at its first JIT allocation: a trace trap,
and the app reports that the server did not start in time. To check which
kind a build is, inspect its Node:
codesign -dv Soundbox.app/Contents/MacOS/nodeAn ad-hoc build shows flags=0x2(adhoc), without runtime.
Windows
An unsigned installer works, behind the SmartScreen prompt. To remove the
prompt, get a code-signing certificate (Azure Trusted Signing is the cheapest
current option) and configure it in Tauri's bundle.windows.signCommand.