Skip to content

Commit 108d7ce

Browse files
author
AENERV7
committed
feat: bundle WebView2 offline installer for Windows NSIS setup
- Add windows.webviewInstallMode offlineInstaller to tauri.conf.json so the NSIS installer embeds the full WebView2 runtime (~127MB), removing the need for internet or pre-installed Edge on target machines - Add windows.nsis config with installMode both (per-user & per-machine) - Update CI to build NSIS installer (--bundles nsis) on Windows - Release now ships both portable exe and NSIS setup installer - Bump version to 0.5.3
1 parent 00cb628 commit 108d7ce

4 files changed

Lines changed: 20 additions & 6 deletions

File tree

.github/workflows/build.yml

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ jobs:
3939

4040
- name: Build Tauri app (Windows)
4141
if: matrix.os == 'windows-latest'
42-
run: npx tauri build --target ${{ matrix.target }}
42+
run: npx tauri build --target ${{ matrix.target }} --bundles nsis
4343

4444
- name: Build Tauri app (macOS)
4545
if: matrix.os == 'macos-latest'
@@ -48,7 +48,11 @@ jobs:
4848
- name: Prepare Windows artifact
4949
if: matrix.os == 'windows-latest'
5050
shell: bash
51-
run: cp "src-tauri/target/${{ matrix.target }}/release/yauz.exe" "yauz-windows-x64.exe"
51+
run: |
52+
cp "src-tauri/target/${{ matrix.target }}/release/yauz.exe" "YAUZ-windows-x64.exe"
53+
NSIS_DIR="src-tauri/target/${{ matrix.target }}/release/bundle/nsis"
54+
SETUP_FILE=$(ls "$NSIS_DIR"/*-setup.exe 2>/dev/null | head -1)
55+
cp "$SETUP_FILE" "YAUZ-windows-x64-setup.exe"
5256
5357
- name: Prepare macOS artifact
5458
if: matrix.os == 'macos-latest'
@@ -60,5 +64,6 @@ jobs:
6064
uses: softprops/action-gh-release@v2.6.1
6165
with:
6266
files: |
63-
yauz-windows-x64.exe
67+
YAUZ-windows-x64.exe
68+
YAUZ-windows-x64-setup.exe
6469
YAUZ-macos-arm64.zip

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "yauz",
3-
"version": "0.5.2",
3+
"version": "0.5.3",
44
"private": true,
55
"scripts": {
66
"tauri": "tauri",

src-tauri/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "yauz"
3-
version = "0.5.2"
3+
version = "0.5.3"
44
edition = "2021"
55

66
[lib]

src-tauri/tauri.conf.json

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"productName": "YAUZ",
3-
"version": "0.5.2",
3+
"version": "0.5.3",
44
"identifier": "com.yauz.dev",
55
"build": {
66
"frontendDist": "../dist"
@@ -22,6 +22,15 @@
2222
"bundle": {
2323
"active": false,
2424
"icon": ["icons/icon.png", "icons/icon.ico", "icons/icon.icns"],
25+
"windows": {
26+
"webviewInstallMode": {
27+
"type": "offlineInstaller",
28+
"silent": true
29+
},
30+
"nsis": {
31+
"installMode": "both"
32+
}
33+
},
2534
"macOS": {
2635
"infoPlist": "Info.plist",
2736
"files": {

0 commit comments

Comments
 (0)