■ ■ ■ ■ ■ ■
builder/pyinstaller/build.bat
| 1 | + | @echo off |
| 2 | + | set hiddenimports= --hidden-import cryptography --hidden-import cffi --hidden-import cryptography.hazmat.backends.openssl --hidden-import cryptography.hazmat.bindings._openssl --hidden-import unicrypto --hidden-import unicrypto.backends.pycryptodome.DES --hidden-import unicrypto.backends.pycryptodome.TDES --hidden-import unicrypto.backends.pycryptodome.AES --hidden-import unicrypto.backends.pycryptodome.RC4 --hidden-import unicrypto.backends.pure.DES --hidden-import unicrypto.backends.pure.TDES --hidden-import unicrypto.backends.pure.AES --hidden-import unicrypto.backends.pure.RC4 --hidden-import unicrypto.backends.cryptography.DES --hidden-import unicrypto.backends.cryptography.TDES --hidden-import unicrypto.backends.cryptography.AES --hidden-import unicrypto.backends.cryptography.RC4 --hidden-import unicrypto.backends.pycryptodomex.DES --hidden-import unicrypto.backends.pycryptodomex.TDES --hidden-import unicrypto.backends.pycryptodomex.AES --hidden-import unicrypto.backends.pycryptodomex.RC4 |
| 3 | + | set root=%~dp0 |
| 4 | + | set projectname=aardwolf |
| 5 | + | set pyenv=%root%\env |
| 6 | + | set repo=%root%..\..\%projectname% |
| 7 | + | python -m venv %pyenv% |
| 8 | + | %pyenv%\Scripts\activate.bat &^ |
| 9 | + | pip install pyinstaller &^ |
| 10 | + | cd %repo%\..\ &^ |
| 11 | + | pip install . &^ |
| 12 | + | cd %repo%\examples\scanners &^ |
| 13 | + | pyinstaller -F __main__.py %hiddenimports% &^ |
| 14 | + | cd %repo%\examples\scanners\dist & copy __main__.exe %root%\rdpscan.exe |