Skip to content

fix: prefer NSIS installer for Windows download button#79

Merged
jcanizalez merged 2 commits intomainfrom
fix/windows-download-prefer-installer
Mar 23, 2026
Merged

fix: prefer NSIS installer for Windows download button#79
jcanizalez merged 2 commits intomainfrom
fix/windows-download-prefer-installer

Conversation

@jcanizalez
Copy link
Copy Markdown
Owner

Summary

  • The landing page Windows download button matched any .exe asset, which could link to the portable build instead of the installer
  • Narrowed the asset matcher to Setup*.exe so it consistently serves the NSIS installer, matching the behavior of install.ps1

Test plan

  • Verify the Windows download button on the landing page links to the Setup .exe
  • Confirm macOS and Linux download buttons are unaffected

The landing page asset matcher matched any .exe, which could link to the
portable build instead of the installer. Narrow the match to Setup*.exe
so the download button consistently serves the NSIS installer.
Copilot AI review requested due to automatic review settings March 23, 2026 20:45
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Updates the landing page’s GitHub release asset selection so the Windows download button consistently points to the NSIS installer instead of potentially selecting the portable .exe.

Changes:

  • Narrow Windows asset matching from “any .exe” to a Setup…exe-style matcher.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

const ASSET_MATCH = {
mac: (name) => name.endsWith('.dmg') && !name.endsWith('.blockmap'),
win: (name) => name.endsWith('.exe') && !name.endsWith('.blockmap'),
win: (name) => /Setup.*\.exe$/.test(name) && !name.endsWith('.blockmap'),
Copy link

Copilot AI Mar 23, 2026

Choose a reason for hiding this comment

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

The PR description says the Windows matcher was narrowed to Setup*.exe, but the current regex /Setup.*\.exe$/ matches any asset name containing Setup anywhere (e.g. it would also match Foo-SetupHelper.exe if that ever gets published). Given the configured artifact name is ${productName}-Setup-${version}.exe (electron-builder.yml), consider tightening the matcher to the actual pattern (e.g., require -Setup- or VibeGrid-Setup- prefix) so the landing page can’t accidentally pick a different .exe in future releases.

Copilot uses AI. Check for mistakes.
Matches the actual electron-builder artifact name template
(${productName}-Setup-${version}.exe) to avoid false positives.
@jcanizalez jcanizalez merged commit 8283223 into main Mar 23, 2026
1 check passed
@jcanizalez jcanizalez deleted the fix/windows-download-prefer-installer branch March 23, 2026 21:05
This was referenced Mar 23, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants