Files
RuneStone/docs/builds.md
T

4.6 KiB

Build and package RuneStone

Development · Release history · Installation

This guide is for maintainers. Users install a supplied package through the installation guide.

Build the Windows installer

Build on 64-bit Windows with the tools in the development guide. The commands below use the checked-in dependency versions.

pnpm install --frozen-lockfile
pnpm check
pnpm test
pnpm build:installer

The last command builds the interface, compiles the release app, and creates an NSIS setup executable. The first build needs internet access to download the packaging tools and the WebView2 bootstrapper. Find the installer in:

src-tauri/target/release/bundle/nsis/RuneStone_<version>_x64-setup.exe

Distribute this setup file. Users do not need the repository, a local server, or build tools. Build output stays outside version control.

Installer settings

Tauri automatically merges src-tauri/tauri.windows.conf.json into the base configuration on Windows. This file selects NSIS for ordinary pnpm tauri build commands too. It uses the existing RuneStone icon and installs the app for the current Windows account. Tauri supplies the setup screens, Start menu shortcut, launch option, and uninstaller.

The installer includes the WebView2 bootstrapper. If WebView2 is missing, setup downloads the runtime. An existing runtime needs no setup download. The configuration blocks version downgrades. It does not register document types or start RuneStone when Windows starts.

See Tauri's Windows installer documentation for the packaging options.

Prepare a release

Each project uses its own zz.yy.xx version. Routine source edits and checks retain the current version. Increase xx once when producing a new completed installer or plugin ZIP. Failed attempts do not consume a version. Keep version fields consistent, and restore them if no build completes. Increase yy or zz only for a user-directed release, then reset the lower fields as defined in the version policy. Publishing an existing artifact does not change its version.

  1. Set the same version in package.json, src-tauri/Cargo.toml, and src-tauri/tauri.conf.json.
  2. Update src-tauri/Cargo.lock with Cargo if the package version changed.
  3. Run the checks and build command above.
  4. Test the installer on a clean Windows account with the checks below.
  5. Attach the setup file and release notes to the repository release or your chosen download page.

Keep com.runestone.app as the app identifier so upgrades retain the same app identity. No public download location or automatic release upload is configured yet. After you publish an installer, add its download link to the README.

Local installers are unsigned until the maintainer configures Windows code signing. Use Tauri's signing guide before public distribution.

Installer checks

Check Expected result
Install on an account without Node.js or Rust Setup completes and RuneStone opens
Install without WebView2, with internet access Setup installs the runtime and RuneStone opens
Open RuneStone from the Start menu The app opens without a terminal or development server
Create a workspace outside the installation folder Notes save and reopen
Install a newer version Setup updates the app and preserves workspace files
Reinstall the same version Setup defaults to reinstall and preserves workspace files and settings
Try to install an older version Setup blocks the downgrade
Remove RuneStone through Windows Settings The app and shortcuts disappear, and the separate workspace remains

These checks require a Windows test account or virtual machine. A successful build alone does not confirm them.

Experimental platform packages

Linux and macOS packages remain unvalidated. Build on the target platform with the correct Browser runtime. Use the Linux readiness guide for system packages, desktop checks, and Debian/AppImage commands.

On macOS, a local application bundle can use:

pnpm tauri build --bundles app -- --locked

Tauri places the bundle under src-tauri/target/release/bundle/macos/. This command is a test route, not a validated RuneStone release workflow. Check the Tauri application bundle guide for platform packaging behavior. Signing, notarization, architecture coverage, Browser packaging, and desktop acceptance remain unresolved for RuneStone on macOS.