Utils Intern: Unterschied zwischen den Versionen
(→exe aus Python Project erstellen) |
(→STM_GUI.exe aus Python Project erstellen) |
||
Zeile 17: | Zeile 17: | ||
pip install pyinstaller<br> | pip install pyinstaller<br> | ||
cd src<br> | cd src<br> | ||
− | pyinstaller --name STM_GUI --onefile --windowed --icon=stm_symbol.ico Master.py | + | pyinstaller --name STM_GUI --onefile --windowed --icon=stm_symbol.ico Master.py <br> |
− | <br> | + | creates STM_GUI.exe <br> |
+ | |||
+ | |||
+ | '''Assets'''<br> | ||
+ | setup.ico<br> | ||
+ | stm_symbol.ico<br> | ||
+ | |||
− | |||
Zeile 27: | Zeile 32: | ||
Start App '''Inno Setup''' | Start App '''Inno Setup''' | ||
+ | inno_icon.iss |
Version vom 23. Juli 2023, 17:27 Uhr
Inhaltsverzeichnis
requirements.txt
cd src
pip freeze > requirements.txt
pip install -r requirements.txt
Virtuelle Umgebung venv
pip install virtualenv
virtualenv venv
venv\Scripts\activate
deactivate
STM_GUI.exe aus Python Project erstellen
Youtube Convert GUI App to Real Program - Python to exe to setup wizard
Bundle scripts and assets
1. Pyinstaller
pip install pyinstaller
cd src
pyinstaller --name STM_GUI --onefile --windowed --icon=stm_symbol.ico Master.py
creates STM_GUI.exe
Assets
setup.ico
stm_symbol.ico
Start App Inno Setup inno_icon.iss