fix(windows): give the launcher's exe its product, publisher and version #423

Merged
HumanBean merged 1 commit from HumanBean/LongshotLauncher:fix/windows-version-info into main 2026-12-05 18:49:48 +00:00
Owner

The Windows launcher says nothing about itself: no product, publisher or version in the file's properties. It is also unsigned and often flagged by antivirus, and this may help a little with that heuristic guesswork (Longshot #46). It does not replace code signing, and no effect on detections has been measured.

What changes

build.rs appends a VERSIONINFO resource to assets/windows/launcher.rc:

Field Value
CompanyName MagicBean
ProductName, FileDescription Longshot Launcher
FileVersion, ProductVersion the release's tag (LONGSHOT_TAG), else dev
numeric version vX.Y.Z is X.Y.Z.0, nightly-<count>-<commit> is 0.0.count.0, else 0.0.0.0
OriginalFilename LongshotLauncher.exe
LegalCopyright Free software under GPL-3.0-or-later

Windows also shows FileDescription as the program's name in Task Manager and similar places. Linux builds are unchanged.

Testing

On Linux, cross-building x86_64-pc-windows-gnullvm with the pinned llvm-mingw 20261104:

  • Tags nightly-277-cd9aad02, v1.3.1 and none: the built exe's strings and numeric version are as in the table. Changing only the tag rebuilds the resource.
  • The exe keeps its icons and manifest, and --self-check under Wine answers with the tag.
  • cargo fmt --check, Clippy (Linux, and the Windows binary), tests/test_launcher_core.py and Tooling's test_release.py pass.

Not tested: the file's properties dialog on real Windows.

🤖 Generated with Claude Code

The Windows launcher says nothing about itself: no product, publisher or version in the file's properties. It is also unsigned and often flagged by antivirus, and this may help a little with that heuristic guesswork ([Longshot #46](https://git.magicbean.dev/MagicBeanDev/Longshot/issues/46)). It does not replace code signing, and no effect on detections has been measured. ## What changes `build.rs` appends a `VERSIONINFO` resource to `assets/windows/launcher.rc`: | Field | Value | |---|---| | CompanyName | MagicBean | | ProductName, FileDescription | Longshot Launcher | | FileVersion, ProductVersion | the release's tag (`LONGSHOT_TAG`), else `dev` | | numeric version | `vX.Y.Z` is X.Y.Z.0, `nightly-<count>-<commit>` is 0.0.count.0, else 0.0.0.0 | | OriginalFilename | LongshotLauncher.exe | | LegalCopyright | Free software under GPL-3.0-or-later | Windows also shows FileDescription as the program's name in Task Manager and similar places. Linux builds are unchanged. ## Testing On Linux, cross-building `x86_64-pc-windows-gnullvm` with the pinned llvm-mingw 20261104: - Tags `nightly-277-cd9aad02`, `v1.3.1` and none: the built exe's strings and numeric version are as in the table. Changing only the tag rebuilds the resource. - The exe keeps its icons and manifest, and `--self-check` under Wine answers with the tag. - `cargo fmt --check`, Clippy (Linux, and the Windows binary), `tests/test_launcher_core.py` and Tooling's `test_release.py` pass. Not tested: the file's properties dialog on real Windows. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
fix(windows): give the launcher's exe its product, publisher and version
Some checks are pending
CI / What the change needs (pull_request) Successful in 4s
CI / Rust formatting, lint and tests (pull_request) Waiting to run
CI / Release packages and stable upgrades (pull_request) Waiting to run
PR title / Conventional Commit title (pull_request) Successful in 5s
CI / Lint (actionlint, ShellCheck, gitleaks) (pull_request) Successful in 9s
68dc552408
Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Member

Possibly related, for context:

  • issue MagicBeanDev/Longshot#46 Idea: Authenticode signing for the Windows builder and launcher, separate from signed release manifests — Related motivation: Windows executable identity and antivirus reputation
Possibly related, for context: - issue MagicBeanDev/Longshot#46 Idea: Authenticode signing for the Windows builder and launcher, separate from signed release manifests — Related motivation: Windows executable identity and antivirus reputation
HumanBean deleted branch fix/windows-version-info 2026-12-05 18:49:48 +00:00
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
MagicBeanDev/LongshotLauncher!423
No description provided.