From 0b8f3e01fbb646d0f4d04cc392c8e0906567d7d9 Mon Sep 17 00:00:00 2001 From: Minh141120 Date: Tue, 30 Sep 2025 15:32:29 +0700 Subject: [PATCH 1/3] feat: add msi installer for windows --- src-tauri/tauri.conf.json | 1 + src-tauri/tauri.windows.conf.json | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src-tauri/tauri.conf.json b/src-tauri/tauri.conf.json index 6aaa66bb7..10f4325e8 100644 --- a/src-tauri/tauri.conf.json +++ b/src-tauri/tauri.conf.json @@ -76,6 +76,7 @@ "deep-link": { "schemes": ["jan"] } }, "bundle": { + "publisher": "Menlo Research Pte. Ltd.", "active": true, "createUpdaterArtifacts": false, "icon": [ diff --git a/src-tauri/tauri.windows.conf.json b/src-tauri/tauri.windows.conf.json index 16cb9b10a..05205cbff 100644 --- a/src-tauri/tauri.windows.conf.json +++ b/src-tauri/tauri.windows.conf.json @@ -1,7 +1,7 @@ { "bundle": { - "targets": ["nsis"], - "resources": ["resources/pre-install/**/*", "resources/lib/vulkan-1.dll", "resources/lib/vc_redist.x64.exe", "resources/LICENSE"], + "targets": ["nsis", "msi"], + "resources": ["resources/pre-install/**/*", "resources/lib/vulkan-1.dll", "resources/LICENSE", "resources/", "resources/lib/vc_redist.x64.exe"], "externalBin": ["resources/bin/bun", "resources/bin/uv"], "windows": { "nsis": { From dcb511023d464276a9ec62ac9a0fca9d94b49566 Mon Sep 17 00:00:00 2001 From: Minh141120 Date: Tue, 30 Sep 2025 15:41:04 +0700 Subject: [PATCH 2/3] ci: add upload .msi artifact --- .github/workflows/template-tauri-build-windows-x64.yml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/.github/workflows/template-tauri-build-windows-x64.yml b/.github/workflows/template-tauri-build-windows-x64.yml index 643fef5ac..c9329bbf6 100644 --- a/.github/workflows/template-tauri-build-windows-x64.yml +++ b/.github/workflows/template-tauri-build-windows-x64.yml @@ -189,9 +189,15 @@ jobs: - name: Upload Artifact uses: actions/upload-artifact@v4 with: - name: jan-windows-${{ inputs.new_version }} + name: jan-windows-exe-${{ inputs.new_version }} path: | ./src-tauri/target/release/bundle/nsis/*.exe + - name: Upload Artifact + uses: actions/upload-artifact@v4 + with: + name: jan-windows-msi-${{ inputs.new_version }} + path: | + ./src-tauri/target/release/bundle/msi/*.msi ## Set output filename for windows - name: Set output filename for windows From 508cbe16f8b4828968cc96192e3d214910193202 Mon Sep 17 00:00:00 2001 From: Minh141120 Date: Tue, 30 Sep 2025 15:49:14 +0700 Subject: [PATCH 3/3] refactor: remove redundant resource --- src-tauri/tauri.windows.conf.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src-tauri/tauri.windows.conf.json b/src-tauri/tauri.windows.conf.json index 05205cbff..f12ee2a5c 100644 --- a/src-tauri/tauri.windows.conf.json +++ b/src-tauri/tauri.windows.conf.json @@ -1,7 +1,7 @@ { "bundle": { "targets": ["nsis", "msi"], - "resources": ["resources/pre-install/**/*", "resources/lib/vulkan-1.dll", "resources/LICENSE", "resources/", "resources/lib/vc_redist.x64.exe"], + "resources": ["resources/pre-install/**/*", "resources/lib/vulkan-1.dll", "resources/LICENSE", "resources/lib/vc_redist.x64.exe"], "externalBin": ["resources/bin/bun", "resources/bin/uv"], "windows": { "nsis": {