Copyright © 2019 by DKY (Ryan Lam)
The files in this repository comprise the core materials that are necessary to
build the Hazard Team Compile Tool. They have been provided here, free of
charge, for anyone's use in building their own htct.exe executable.
Current version: 0.6.0 BETA
- Python 3.7
- PyInstaller 3.4
- PySide2 5.11.2 or equivalent
- psutil 5.4.8
A requirements.txt file has been provided in this repository for (optional)
convenient dependency installation with pip.
- UPX 3.91 or equivalent (for PYD and executable compression)
- Ensure that the above requirements are installed.
- Run
build_htct.bat. - A new folder
distwill appear withhtct.exeinside. - Done!
If you get DLL load errors when running your custom-built htct.exe, that is
due to UPX corrupting the following DLLs when PyInstaller packages the
executable:
- vcruntime140.dll
- msvcp140.dll
- qwindows.dll
- qwindowsvistastyle.dll
To fix these errors, you have a couple of options. You can either:
- Disable UPX. To do this, add the
--noupxoption to thepyinstallerinvocation inbuild_htct.bat.
... or:
-
Install a development version of PyInstaller that can accept the
--upx-excludeoption. Specifically, you will need a version of PyInstaller that includes pull request #3821. You will then need to add the following options to thepyinstallerinvocation inbuild_htct.bat:--upx-exclude vcruntime140.dll--upx-exclude msvcp140.dll--upx-exclude qwindows.dll--upx-exclude qwindowsvistastyle.dll