Skip to content

Commit

Permalink
pyinstaller build script
Browse files Browse the repository at this point in the history
  • Loading branch information
SkelSec committed Jan 20, 2023
1 parent ed5acdf commit 9c8a612
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions builder/pyinstaller/build.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
@echo off
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
set root=%~dp0
set projectname=aardwolf
set pyenv=%root%\env
set repo=%root%..\..\%projectname%
python -m venv %pyenv%
%pyenv%\Scripts\activate.bat &^
pip install pyinstaller &^
cd %repo%\..\ &^
pip install . &^
cd %repo%\examples\scanners &^
pyinstaller -F __main__.py %hiddenimports% &^
cd %repo%\examples\scanners\dist & copy __main__.exe %root%\rdpscan.exe

0 comments on commit 9c8a612

Please sign in to comment.