Skip to content

Latest commit

 

History

History
40 lines (27 loc) · 735 Bytes

File metadata and controls

40 lines (27 loc) · 735 Bytes

Deployment Guide

Prerequisites

python -m pip install pyinstaller

Build Executable

Basic Build

python -m PyInstaller --onefile --windowed --name="AWS_EC2_VPN" Client/main.py

Build with Icon

python -m PyInstaller --onefile --windowed --icon=icon.ico --name="AWS_EC2_VPN" Client/main.py

Output

  • Executable location: dist/AWS_EC2_VPN.exe
  • Can be distributed as standalone file
  • No Python installation required for end users

Clean Build Files

rmdir /s build
rmdir /s __pycache__
del AWS_EC2_VPN.spec

Troubleshooting

  • If pathlib error: python -m pip uninstall pathlib
  • If command not found: Use python -m PyInstaller instead of pyinstaller