mirror of
https://github.com/jtesta/ssh-audit.git
synced 2024-12-22 22:15:22 +01:00
Windows build script now automatically installs/updates package dependencies.
This commit is contained in:
parent
0bfb5d6979
commit
4c098b7d12
10
PACKAGING.md
10
PACKAGING.md
@ -4,15 +4,9 @@ An executable can only be made on a Windows host because the PyInstaller tool (h
|
|||||||
|
|
||||||
1.) Install Python v3.11.x from https://www.python.org/. To make life easier, check the option to add Python to the PATH environment variable.
|
1.) Install Python v3.11.x from https://www.python.org/. To make life easier, check the option to add Python to the PATH environment variable.
|
||||||
|
|
||||||
2.) Using pip, install pyinstaller, colorama, and idna:
|
2.) Install Cygwin (https://www.cygwin.com/).
|
||||||
|
|
||||||
```
|
3.) Install/update package dependencies and create the executable with:
|
||||||
pip install -U pyinstaller colorama idna
|
|
||||||
```
|
|
||||||
|
|
||||||
3.) Install Cygwin (https://www.cygwin.com/).
|
|
||||||
|
|
||||||
4.) Create the executable with:
|
|
||||||
|
|
||||||
```
|
```
|
||||||
$ ./build_windows_executable.sh
|
$ ./build_windows_executable.sh
|
||||||
|
@ -48,15 +48,10 @@ if [[ "$(python -V)" != "Python 3."* ]]; then
|
|||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Ensure that pyinstaller is installed.
|
# Install/update package dependencies.
|
||||||
command -v pyinstaller >/dev/null 2>&1 || { echo >&2 "pyinstaller not found. Install with: 'pip install pyinstaller'"; exit 1; }
|
echo "Installing/updating pyinstaller, colorama, and idna packages..."
|
||||||
|
pip install -U pyinstaller colorama idna
|
||||||
# Ensure that the colorama module is installed.
|
echo
|
||||||
X=$(pip show colorama 2>/dev/null)
|
|
||||||
if [[ $? != 0 ]]; then
|
|
||||||
echo "Colorama module not found. Install with: 'pip install colorama'"
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
|
|
||||||
# Prompt for the version to release.
|
# Prompt for the version to release.
|
||||||
echo -n "Enter the version to release, using format 'vX.X.X': "
|
echo -n "Enter the version to release, using format 'vX.X.X': "
|
||||||
|
Loading…
Reference in New Issue
Block a user