Skip to content

Conversation

@Minh141120
Copy link
Member

@Minh141120 Minh141120 commented Sep 22, 2025

Describe your changes

This pull request updates the Windows Tauri build process and installer configuration, focusing on improving post-installation setup, simplifying versioning and templating, and enhancing resource management. The changes introduce a custom NSIS installer hook for dependency installation and resource copying, streamline build scripts, and update configuration files to support these enhancements.

This would also allow to choose installation path on Windows

image

Chat UI

  • MCP Server Fetch from Smithery
image
  • MCP Server Exa
image
  • Token count indicator showing correctly
image

Model Providers

image

LLama.cpp imported and downloaded models

image

Hardware Settings

image

MCP Servers

image

Local API Server

image image image

HTTPS Proxy

image image

App Updater

image image image

Fixes Issues


Important

Update Windows Tauri build process by removing custom NSIS template, adding installer hooks, and enhancing resource management.

  • Build Process:
    • Removed custom NSIS template src-tauri/tauri.bundle.windows.nsis.template.
    • Added installerHooks in tauri.windows.conf.json to use windows/hooks.nsh for post-installation tasks.
    • Updated template-tauri-build-windows-x64-external.yml and template-tauri-build-windows-x64.yml to remove NSIS template references and streamline versioning.
  • Installer Enhancements:
    • hooks.nsh installs VC++ Redistributable if not present and copies LICENSE and vulkan-1.dll to install root.
    • download-lib.mjs downloads and copies vc_redist.x64.exe and vulkan-1.dll to resources/lib.
  • Misc:

This description was created by Ellipsis for 8ba0342. You can customize this summary. It will automatically update as commits are pushed.

@github-actions
Copy link
Contributor

github-actions bot commented Sep 22, 2025

Barecheck - Code coverage report

Total: 30.04%

Your code coverage diff: -0.01% ▾

Uncovered files and lines
FileLines
scripts/download-lib.mjs1-7, 9-39, 41-44, 46, 48-54, 56, 58-59, 61-65, 67-71, 73-78, 80-89, 91-97, 99-100, 102-105

@Minh141120 Minh141120 marked this pull request as ready for review September 23, 2025 11:59
Copy link
Contributor

@ellipsis-dev ellipsis-dev bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Important

Looks good to me! 👍

Reviewed everything up to d55a0cd in 1 minute and 49 seconds. Click for details.
  • Reviewed 1281 lines of code in 5 files
  • Skipped 0 files when reviewing.
  • Skipped posting 4 draft comments. View those below.
  • Modify your settings and rules to customize what types of comments Ellipsis leaves. And don't forget to react with 👍 or 👎 to teach Ellipsis.
1. .github/workflows/template-tauri-build-windows-x64-external.yml:49
  • Draft comment:
    NSIS template configuration via jq was removed. Ensure that removing the custom template update is deliberate and that the new installer hook covers all intended behaviors.
  • Reason this comment was not posted:
    Comment did not seem useful. Confidence is useful = 40% <= threshold 50% The comment is asking the author to ensure that the removal of a custom template update is deliberate and that the new installer hook covers all intended behaviors. This is a request for confirmation, which violates the rules. However, it also points out a specific change (removal of NSIS template configuration) and suggests ensuring that the new installer hook covers all intended behaviors, which could be seen as a specific suggestion. The comment is borderline, but it leans towards being a request for confirmation.
2. .github/workflows/template-tauri-build-windows-x64.yml:95
  • Draft comment:
    Custom NSIS template modifications (including the generate_build_version function and sed replacements) have been removed and replaced with a signCommand update. Verify that the default NSIS template now supports all required customizations via hooks.
  • Reason this comment was not posted:
    Comment did not seem useful. Confidence is useful = 0% <= threshold 50% The comment is asking the PR author to verify that the default NSIS template supports all required customizations via hooks. This falls under the category of asking the author to ensure behavior is intended or to double-check things, which is against the rules.
3. src-tauri/tauri.windows.conf.json:7
  • Draft comment:
    NSIS configuration updated to use installerHooks and installerIcon. Confirm that the new paths (‘./windows/hooks.nsh’ and ‘icons/icon.ico’) are correct and available in the build.
  • Reason this comment was not posted:
    Comment did not seem useful. Confidence is useful = 0% <= threshold 50% The comment is asking the PR author to confirm the correctness and availability of paths in the build, which violates the rule against asking the author to confirm or ensure things. It doesn't provide a specific suggestion or point out a clear issue.
4. src-tauri/windows/hooks.nsh:1
  • Draft comment:
    New NSIS post-install hook added to check and install the VC++ Redistributable along with copying LICENSE and vulkan-1.dll. Consider verifying that the registry lookup (for key under VisualStudio 14.0) correctly targets the desired VC++ 2019 Redistributable.
  • Reason this comment was not posted:
    Decided after close inspection that this draft comment was likely wrong and/or not actionable: usefulness confidence = 10% vs. threshold = 50% The comment raises a valid technical concern about version mismatch. However, it's phrased as "Consider verifying..." which violates our rule about not asking authors to verify things. The issue should either be definitively stated as wrong (with evidence) or not mentioned at all. Additionally, the rest of the comment is just describing what the code does, which isn't useful. I might be wrong about the severity of the version mismatch - perhaps checking for 14.0 while downloading 17 is intentional or standard practice. Without deep knowledge of VC++ redistributable versioning practices, we can't be certain this is actually a problem. Following our principle of needing strong evidence, we should err on the side of removing the comment. The comment should be deleted as it's partly descriptive (not useful) and partly speculative (asking for verification without clear evidence of a problem).

Workflow ID: wflow_kfmfk9GxmCGt0NQX

You can customize Ellipsis by changing your verbosity settings, reacting with 👍 or 👎, replying to comments, or adding code review rules.

@Minh141120 Minh141120 force-pushed the chore/standardize-build-windows branch from d55a0cd to 2a905c6 Compare September 23, 2025 12:01
Copy link
Contributor

@ellipsis-dev ellipsis-dev bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Caution

Changes requested ❌

Reviewed f1d97ac in 2 minutes and 14 seconds. Click for details.
  • Reviewed 111 lines of code in 3 files
  • Skipped 0 files when reviewing.
  • Skipped posting 1 draft comments. View those below.
  • Modify your settings and rules to customize what types of comments Ellipsis leaves. And don't forget to react with 👍 or 👎 to teach Ellipsis.
1. src-tauri/windows/hooks.nsh:3
  • Draft comment:
    The registry check uses the key for VisualStudio 14.0 runtimes. Verify that this key properly detects an existing installation of the newer VC++ redistributable (from VS 17) installed via vc_redist.x64.exe.
  • Reason this comment was not posted:
    Comment was not on a location in the diff, so it can't be submitted as a review comment.

Workflow ID: wflow_jxuTiBV9yl46muKh

You can customize Ellipsis by changing your verbosity settings, reacting with 👍 or 👎, replying to comments, or adding code review rules.

Copy link
Contributor

@ellipsis-dev ellipsis-dev bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Caution

Changes requested ❌

Reviewed 8ba0342 in 2 minutes and 2 seconds. Click for details.
  • Reviewed 13 lines of code in 1 files
  • Skipped 0 files when reviewing.
  • Skipped posting 0 draft comments. View those below.
  • Modify your settings and rules to customize what types of comments Ellipsis leaves. And don't forget to react with 👍 or 👎 to teach Ellipsis.

Workflow ID: wflow_bazgJYKB4GpDpKkO

You can customize Ellipsis by changing your verbosity settings, reacting with 👍 or 👎, replying to comments, or adding code review rules.

Copy link
Contributor

@louis-jan louis-jan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@Minh141120 Minh141120 merged commit c46e13b into dev Sep 23, 2025
20 checks passed
@Minh141120 Minh141120 deleted the chore/standardize-build-windows branch September 23, 2025 15:23
@github-project-automation github-project-automation bot moved this to QA in Jan Sep 23, 2025
@github-actions github-actions bot added this to the v0.7.0 milestone Sep 23, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

devops: standardize local build vs ci on Windows feat: Jan Installer for Windows can choose folder path to install on

3 participants