mirror of
https://github.com/jtesta/ssh-audit.git
synced 2024-11-16 13:35:39 +01:00
20 lines
865 B
Plaintext
20 lines
865 B
Plaintext
Below are notes for creating a Windows executable.
|
|
|
|
An executable can only be made on a Windows host because the PyInstaller tool (https://www.pyinstaller.org/) does not support cross-compilation.
|
|
|
|
On a Windows machine, do the following:
|
|
|
|
1.) Install Python v3.7.x from https://www.python.org/. (As of this writing v3.8.0 isn't supported.) To make life easier, check the option to add Python to the PATH environment variable.
|
|
|
|
2.) Using pip, install pyinstaller and colorama:
|
|
|
|
pip install pyinstaller colorama
|
|
|
|
3.) Create the executable with:
|
|
|
|
pyinstaller -D --icon packages\windows_icon.ico --add-data policies;policies ssh-audit.py
|
|
|
|
4.) Rename the "dist\ssh-audit\" folder to "dist\ssh-audit vX.X.X\"
|
|
|
|
5.) Zip the "dist\ssh-audit vX.X.X\" folder and name it "windows_ssh-audit_vX.X.X.zip" (hint: zip windows_ssh-audit_vX.X.X.zip -r "ssh-audit vX.X.X").
|