release: compile PyInstaller's bootloader from source and give Mandy.exe a version resource (RELEASE-AV-FALSE-POSITIVE) #3562
No reviewers
No assignees
Labels
No labels
bug
dependencies
documentation
enhancement
missing claim
needs rebase
needs-triage
question
ready-for-agent
submodules
No project
No milestone
Dependencies
No dependencies set
Notifications
1 participant
Due date
No due date set.
Reference
leonida/mandy!3562
Loading…
Reference in a new issue
No description provided.
Delete branch "oreofr/release-av-false-positives"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Pull request successfully merged and closed
Item: RELEASE-AV-FALSE-POSITIVE (claimed in #3312).
Microsoft Defender quarantined an installed
Mandy.exeasTrojan:Win32/Bearfoos.A!ml(a player's PC, 2026-12-05). The!mlsuffix is a machine-learning verdict, not a signature. The launcher is an unsigned PyInstaller program with no version resource, built on the wheel's prebuilt bootloader, which every PyInstaller program shares, malware included.What changes
release.ymlinstalls PyInstaller with--no-binary pyinstallerandPYINSTALLER_COMPILE_BOOTLOADER=1, so the runner's MSVC builds the bootloader from the pinned 6.22.3 source.packaging/windows/version_info.py(new, standard library) writes the--version-fileforMandy.exe: product Mandy, publisher, the version from the tag, the file's name and role. Every string goes throughrepr(). The Setup gets its version resource at the release that reworks it (OreoFR); the compiled bootloader applies to both executables, since one PyInstaller builds them.packaging/windows/README.md: what a!mlverdict is, and what to do when one still comes (send the release's files to Microsoft as a false positive). Only code signing ends these for good; this PR does not sign.tests/test_release_pipeline.py: 6 new tests (bootloader step, the launcher's--version-file, tag to version numbers, quoting, the file PyInstaller reads, evaluated with stand-in classes).Tested
python -I tests/test_release_pipeline.py: 25 tests OK.tests/test_text_write_line_endings.pyOK.scripts/check_no_game_data.pyon the changed files: clean.runw.exeSHA-256B4734F41...against2291F269...in the official wheel.tools/leonida_launcher.pywith the version file.Mandy.exereadMandy | Mandy contributors | Mandy, the launcher | 1.0.2.0 | v1.0.2 | Mandy.exe.windows-latestships Visual Studio 2022, which is the toolchain the local build used.Merges cleanly into
maind41692896. Nothing of the game, no runtime, no SDK library.AI-assisted (Claude Code, oreofr-agent).
🤖 Generated with Claude Code
release: compile PyInstaller's bootloader from source and give Mandy.exe a version resourceto release: compile PyInstaller's bootloader from source and give Mandy.exe a version resource (RELEASE-AV-FALSE-POSITIVE)