wheel (GitLab)
wheel (GHA via nightly.link
)
We have moved to https://codeberg.org/KOLANICH-tools/PEHeaderEditor.py, grab new versions there.
Under the disguise of "better security" Micro$oft-owned GitHub has discriminated users of 1FA passwords while having commercial interest in success of FIDO 1FA specifications and Windows Hello implementation which it promotes as a replacement for passwords. It will result in dire consequencies and is competely inacceptable, read why.
If you don't want to participate in harming yourself, it is recommended to follow the lead and migrate somewhere away of GitHub and Micro$oft. Here is the list of alternatives and rationales to do it. If they delete the discussion, there are certain well-known places where you can get a copy of it. Read why you should also leave GitHub.
Allows you to patch PE files headers.
The main focus was to allow Windows XP recognize PE files produced by CLang.
MinGW-w64 standard library is compatible to Windows XP, and it used to have a special flag for it, but CLang when introduced the optional header, it was set by default to the values allowing usage of the generated binaries since Vista.
PEHeaderEditor --preset=winxp *.exe *.dll
Pretty simple, right?
echo '{"MajorOperatingSystemVersion": 5, "MinorOperatingSystemVersion": 1, "MajorSubsystemVersion": 5, "MinorSubsystemVersion": 1}' | PEHeaderEditor --json=- *.exe *.dll
echo '{"MajorOperatingSystemVersion": 5, "MinorOperatingSystemVersion": 1, "MajorSubsystemVersion": 5, "MinorSubsystemVersion": 1}' > ./headerPatch.json;
PEHeaderEditor --json=./headerPatch.json *.exe *.dll