Build installers
Build on the platform you're targeting: Windows installers on Windows, macOS disk images on a Mac, Linux packages on Linux (or in Docker, as releases do). To build and upload a whole release, see Release a new version, which runs these builds for you.
Before you start
- Node 20 or newer, and stable Rust 1.85 or newer
- The Tauri 2 prerequisites for your platform: WebView2 and the Microsoft C++ build tools on Windows, Xcode command-line tools on macOS, WebKitGTK and the other listed libraries on Linux
- On Windows, Visual Studio 2022 version 17.14 or newer (MSVC 14.44 or newer). Older build tools fail to link the speech engine's prebuilt libraries.
- On Linux, also the ALSA development files for audio input:
sudo apt install libasound2-devon Ubuntu and Debian - An internet connection for the first build (see Speech engine libraries)
npm installrun in the app repository
Build
npm run tauri buildThis:
- runs
npm run build, which type-checks and bundles the interface intodist/, - compiles the Rust backend in release mode (LTO, one codegen unit,
opt-level = 3,panic = "abort", symbols stripped), - packages installers for every target the platform supports (
bundle.targetsis"all").
The release build takes several minutes. Installers are written under src-tauri/target/release/bundle/.
| Platform | Output |
|---|---|
| Windows | nsis/Altar Studio_<version>_x64-setup.exe (installs for the current user) and msi/…_x64_en-US.msi |
| macOS | macos/Altar Studio.app and dmg/Altar Studio_<version>_<arch>.dmg |
| Linux | deb/…_amd64.deb, rpm/….rpm and appimage/…_amd64.AppImage |
The exact file names follow Tauri's conventions. Released files have spaces replaced by dots, such as Altar.Studio_<version>_x64-setup.exe.
The MSI format allows only numbers after the version's hyphen, so a pre-release version such as 0.3.0-beta.2 can't build the .msi. Build the .exe alone:
npm run tauri build -- --bundles nsisBuild Altar Studio Autopilot
Autopilot is a second Tauri app in autopilot/. It has no npm packages of its own and uses the repository's node_modules. Build it from its folder:
cd autopilot
npm run tauri buildIts installers are named Altar Studio Autopilot_<version>_… and go under autopilot/src-tauri/target/release/bundle/, unless CARGO_TARGET_DIR points both apps at one target folder, as the release script does. A Tauri build empties its bundle folders first, so when both apps share a target folder, move the first app's installers aside before building the second.
Build for both Mac architectures
Releases ship separate DMGs for Apple Silicon (aarch64) and Intel (x64). Add the Rust target and pass it to Tauri:
rustup target add x86_64-apple-darwin aarch64-apple-darwin
npm run tauri build -- --target aarch64-apple-darwin
npm run tauri build -- --target x86_64-apple-darwinOutput then goes to src-tauri/target/<target>/release/bundle/.
Build Linux packages in Docker
npm run release:linux -- <tag or commit> builds both apps' .deb, .rpm and AppImage in an Ubuntu 22.04 x86-64 container and smoke-tests them on Ubuntu 22.04, Ubuntu 24.04 and Fedora 41. Building on Ubuntu 22.04 keeps the packages working on 22.04 and newer distributions. See Release a new version.
Speech engine libraries
Listen and Autopilot use sherpa-onnx for speech-to-text. Its Rust crate links prebuilt static libraries, which its build script downloads from sherpa-onnx's GitHub releases into the target folder. To build without internet, point SHERPA_ONNX_ARCHIVE_DIR at a folder holding the downloaded archive, or SHERPA_ONNX_LIB_DIR at the unpacked libraries.
The Windows libraries are built with the static C runtime (/MT), so src-tauri/.cargo/config.toml links Altar Studio the same way (+crt-static) to keep the C and C++ runtimes matched.
The speech models themselves aren't part of the build. Each computer downloads them in the app, or installs them from a release archive.
Signing
The current configuration doesn't sign with a trusted certificate:
- Windows:
certificateThumbprintisnull, so installers are unsigned and SmartScreen warns users. - macOS:
signingIdentityis"-"(an ad-hoc signature) and nothing is notarized, so Gatekeeper blocks the first launch.
The install guides tell users how to get past these warnings. To sign properly, set a certificate in bundle.windows and a Developer ID identity with notarization credentials for macOS. See Tauri's signing guides.
Other bundle settings
| Setting | Altar Studio | Autopilot |
|---|---|---|
| Product name | Altar Studio | Altar Studio Autopilot |
| Identifier | com.milton-black.altar-studio | com.milton-black.altar-studio.autopilot |
| Publisher | Milton Black | Milton Black |
| Windows installer | Current user only; WebView2 downloaded silently if missing (downloadBootstrapper); downgrades allowed | Current user only |
| macOS entitlements | Entitlements.plist: camera and audio input | Entitlements.plist: audio input |
macOS usage strings (Info.plist) | Camera, microphone, local network | Microphone, local network |
Bonjour service (Info.plist) | _altar-autopilot._tcp | _altar-autopilot._tcp |
| Minimum macOS | 10.13 | 10.13 |
macOS shows the usage strings when it asks for permission: the microphone the first time the app listens, and the local network (macOS 15 and later) when Autopilot runs on another computer.
Check the build
Install the result on a clean computer if you can, then check that:
- the first-run wizard appears and creates a workspace,
- an audience output opens on a second display,
- a camera feed works (macOS asks for camera permission),
- Listen hears the microphone (macOS asks for microphone permission),
- with Autopilot installed, switching it on in the control bar starts it and the Autopilot pill shows it connected.