Skip to content

[pylauncher] Add VERSIONINFO resource file for Windows launcher - #27601

Open
sbc100 wants to merge 1 commit into
emscripten-core:mainfrom
sbc100:pylauncher-rc
Open

[pylauncher] Add VERSIONINFO resource file for Windows launcher#27601
sbc100 wants to merge 1 commit into
emscripten-core:mainfrom
sbc100:pylauncher-rc

Conversation

@sbc100

@sbc100 sbc100 commented Aug 23, 2026

Copy link
Copy Markdown
Collaborator

Add tools/pylauncher/pylauncher.rc containing a VERSIONINFO resource with metadata (file description, version, copyright, company) and update build.bat to compile it with rc.exe and link it into pylauncher.exe.

This helps properly identify the executable in Windows and reduces generic heuristic false positive detections from antivirus scanners.

@sbc100
sbc100 requested a review from dschuff August 23, 2026 21:24
@sbc100
sbc100 force-pushed the pylauncher-rc branch 2 times, most recently from cf84def to 0682f54 Compare August 23, 2026 21:31
Add `tools/pylauncher/pylauncher.rc` containing a `VERSIONINFO`
resource with metadata (file description, version, copyright, company)
and update `build.bat` to compile it with `rc.exe` and link it into
`pylauncher.exe`.

This helps properly identify the executable in Windows and reduces
generic heuristic false positive detections from antivirus scanners.
@sbc100

sbc100 commented Aug 24, 2026

Copy link
Copy Markdown
Collaborator Author

Followup change if this doesn't work sbc100#2

#define VER_FILEVERSION_STR "1.0.0.0"

#define VER_PRODUCTVERSION 1,0,0,0
#define VER_PRODUCTVERSION_STR "1.0.0.0"

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

can we somehow get the real version in here?

@dschuff

dschuff commented Aug 25, 2026

Copy link
Copy Markdown
Member

Should we have this for Binaryen? Why is it not triggering the same issues?
Is the version we have in emsdk right now still built on Circle and checked in, or is it the one from chromium CI?

@sbc100

sbc100 commented Aug 25, 2026

Copy link
Copy Markdown
Collaborator Author

Should we have this for Binaryen? Why is it not triggering the same issues? Is the version we have in emsdk right now still built on Circle and checked in, or is it the one from chromium CI?

If you install the prebuilt binaries you get the one from emscripten-releases that is built each release.

@sbc100

sbc100 commented Aug 25, 2026

Copy link
Copy Markdown
Collaborator Author

Should we have this for Binaryen? Why is it not triggering the same issues? Is the version we have in emsdk right now still built on Circle and checked in, or is it the one from chromium CI?

No idea. We are kind shooting in the dark here because the malware checkers are opaque and heuristic-based in some cases AFAICT. I'm just going down the list of "things that can look suspicious to malware checkers" and checking them off.

Then next one is sbc100#2, but I don't really have any way to check they work other than ask users of Norton.

I can upload the executables to scanning websites, but even clang.exe that we have been shipping forever is not completely clean when I upload it to the VirusTotal site.

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