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
dist
will appear withhtct.exe
inside. - 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
--noupx
option to thepyinstaller
invocation inbuild_htct.bat
.
... or:
-
Install a development version of PyInstaller that can accept the
--upx-exclude
option. Specifically, you will need a version of PyInstaller that includes pull request #3821. You will then need to add the following options to thepyinstaller
invocation inbuild_htct.bat
:--upx-exclude vcruntime140.dll
--upx-exclude msvcp140.dll
--upx-exclude qwindows.dll
--upx-exclude qwindowsvistastyle.dll