Initial RuneStone project
This commit is contained in:
@@ -0,0 +1,69 @@
|
||||
# Release guide
|
||||
|
||||
[Back to RuneStone](../README.md)
|
||||
|
||||
## Build the Windows installer
|
||||
|
||||
Build on 64-bit Windows with the tools in the [development guide](development.md#run-from-source).
|
||||
The commands below use the checked-in dependency versions.
|
||||
|
||||
```sh
|
||||
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:
|
||||
|
||||
```text
|
||||
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](https://v2.tauri.app/distribute/windows-installer/) for the packaging options.
|
||||
|
||||
## Prepare a release
|
||||
|
||||
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](https://v2.tauri.app/distribute/sign/windows/) 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 |
|
||||
| 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.
|
||||
Reference in New Issue
Block a user