Skip to content

fix(packaging): give the app its own icon instead of Electron's default - #8

Merged
Sniphs98 merged 2 commits into
mainfrom
fix/app-icon
Sep 25, 2026
Merged

Sniphs98 merged 2 commits into
mainfrom
fix/app-icon

Conversation

@Sniphs98

Copy link
Copy Markdown
Owner

The Windows build never had its .exe edited (signAndEditExecutable: false, set because the winCodeSign bundle can't be extracted without symlink rights on a normal Windows account), and that edit is what stamps the app icon and version info into the executable. Installed builds therefore showed Electron's default icon and called themselves "Electron" by "GitHub, Inc.".

  • Release and CI packaging now pass -c.win.signAndEditExecutable=true; their runners have the privilege. Local builds keep it off so npm run package still works without Developer Mode.
  • The window gets the icon explicitly on Linux, where a window has none of its own, and in npm run dev:electron, which runs the plain electron binary.

Verified locally with the edit enabled: the .exe carries the app icon and reports ProductName "BetterSshClient".

What and why

How it was tested

Checklist

  • PR title is a Conventional Commit (it decides the release)
  • npm run check and npm test pass
  • Tests added or updated for the change
  • README updated if the change is user-visible

Sniphs98 and others added 2 commits September 24, 2026 21:54
The Windows build never had its .exe edited (`signAndEditExecutable: false`,
set because the winCodeSign bundle can't be extracted without symlink
rights on a normal Windows account), and that edit is what stamps the app
icon and version info into the executable. Installed builds therefore showed
Electron's default icon and called themselves "Electron" by "GitHub, Inc.".

- Release and CI packaging now pass -c.win.signAndEditExecutable=true; their
  runners have the privilege. Local builds keep it off so `npm run package`
  still works without Developer Mode.
- The window gets the icon explicitly on Linux, where a window has none of
  its own, and in `npm run dev:electron`, which runs the plain electron
  binary.

Verified locally with the edit enabled: the .exe carries the app icon and
reports ProductName "BetterSshClient".

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Windows runners default to PowerShell, which splits
`-c.win.signAndEditExecutable=true` at the dot into `-c` and
`.win.signAndEditExecutable=true`; electron-builder then tried to load the
latter as a config file and the Windows package job failed. The release
workflow had the same line and would have failed on the next release.
Reproduced with node's argv under PowerShell; bash passes it intact.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@Sniphs98
Sniphs98 merged commit a2a6914 into main Sep 25, 2026
9 checks passed
@Sniphs98
Sniphs98 deleted the fix/app-icon branch September 25, 2026 14:13
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.

1 participant