From 757c511416aba1a9850dc8af5c3f3f73bc55ccc7 Mon Sep 17 00:00:00 2001 From: Maarten Vroegindeweij <30430941+DutchSailor@users.noreply.github.com> Date: Wed, 20 May 2026 16:10:19 +0200 Subject: [PATCH] fix(installer): embed WebView2 bootstrapper + bump to 0.1.2 The v0.1.0 / v0.1.1 NSIS installers shipped without the WebView2 runtime bootstrapper. On clean Windows machines (or systems where WebView2 isn't already installed) this causes the app to fail at startup with "WebView2Loader.dll missing". Setting `bundle.windows.webviewInstallMode` to `embedBootstrapper` packs the ~1.5 MB WebView2 bootstrapper into the installer; it runs silently at install time and downloads the runtime when absent. Result: the app launches on any Windows machine without an extra manual install step. Co-Authored-By: Claude Opus 4.7 (1M context) --- packages/desktop/package.json | 2 +- packages/desktop/src-tauri/Cargo.toml | 2 +- packages/desktop/src-tauri/tauri.conf.json | 6 +++++- 3 files changed, 7 insertions(+), 3 deletions(-) diff --git a/packages/desktop/package.json b/packages/desktop/package.json index ec9d7ab..53ced8a 100644 --- a/packages/desktop/package.json +++ b/packages/desktop/package.json @@ -1,7 +1,7 @@ { "name": "@openaec/calculations-studio", "private": true, - "version": "0.1.1", + "version": "0.1.2", "type": "module", "scripts": { "dev": "vite", diff --git a/packages/desktop/src-tauri/Cargo.toml b/packages/desktop/src-tauri/Cargo.toml index 55c63b5..3cb7989 100644 --- a/packages/desktop/src-tauri/Cargo.toml +++ b/packages/desktop/src-tauri/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "open-calculations-studio" -version = "0.1.1" +version = "0.1.2" description = "Open Calculations Studio - lightweight CalcPAD alternative for Eurocode verifications" authors = ["OpenAEC Contributors"] edition = "2021" diff --git a/packages/desktop/src-tauri/tauri.conf.json b/packages/desktop/src-tauri/tauri.conf.json index c75f2c7..e3a9126 100644 --- a/packages/desktop/src-tauri/tauri.conf.json +++ b/packages/desktop/src-tauri/tauri.conf.json @@ -1,7 +1,7 @@ { "$schema": "https://schema.tauri.app/config/2", "productName": "Open Calculations Studio", - "version": "0.1.1", + "version": "0.1.2", "identifier": "studio.opencalculations.app", "build": { "beforeDevCommand": "npm run dev", @@ -47,6 +47,10 @@ "icons/icon.ico" ], "windows": { + "webviewInstallMode": { + "type": "embedBootstrapper", + "silent": true + }, "nsis": { "installMode": "perMachine", "installerIcon": "icons/icon.ico"