Skip to content

fix(build): add Windows PE metadata to crowdin.exe - #1092

Draft
andrii-bodnar wants to merge 1 commit into
mainfrom
fix/windows-pe-metadata
Draft

fix(build): add Windows PE metadata to crowdin.exe#1092
andrii-bodnar wants to merge 1 commit into
mainfrom
fix/windows-pe-metadata

Conversation

@andrii-bodnar

Copy link
Copy Markdown
Member

The released crowdin.exe carried no VERSIONINFO resource at all, so Windows showed no publisher, product name or version in file properties. An unsigned PE with a blank version resource also feeds AV heuristics - 5.0.0 came back 1/68 on the Chocolatey virus scan.

Bun's --windows-* flags only work on a Windows host (they depend on Windows APIs), so the exe can no longer be cross-compiled on ubuntu. Build it once in a new win-binary job and reuse that artifact for the npm package, the release asset and the Inno Setup installer. Side benefit: the installer now ships the exact binary the release publishes instead of a separately compiled one.

Both Windows jobs assert the metadata is non-empty, so the flags cannot fall out of the build script unnoticed.

The released crowdin.exe carried no VERSIONINFO resource at all, so Windows
showed no publisher, product name or version in file properties. An unsigned
PE with a blank version resource also feeds AV heuristics - 5.0.0 came back
1/68 on the Chocolatey virus scan.

Bun's --windows-* flags only work on a Windows host (they depend on Windows
APIs), so the exe can no longer be cross-compiled on ubuntu. Build it once in
a new win-binary job and reuse that artifact for the npm package, the release
asset and the Inno Setup installer. Side benefit: the installer now ships the
exact binary the release publishes instead of a separately compiled one.

Both Windows jobs assert the metadata is non-empty, so the flags cannot fall
out of the build script unnoticed.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
@andrii-bodnar
andrii-bodnar marked this pull request as draft August 28, 2026 07:03
@andrii-bodnar andrii-bodnar added the windows It is related to the Windows environment label Aug 28, 2026
@codecov

codecov Bot commented Aug 28, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 92.12%. Comparing base (3d48e39) to head (ec155ed).

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #1092   +/-   ##
=======================================
  Coverage   92.12%   92.12%           
=======================================
  Files         140      140           
  Lines       11364    11364           
=======================================
  Hits        10468    10468           
  Misses        896      896           

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

windows It is related to the Windows environment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant