Utils Intern: Unterschied zwischen den Versionen

Aus Wiki-500-Euro-RTM
Wechseln zu: Navigation, Suche
(requirements.txt)
(STM_GUI.exe aus Python Project erstellen)
 
(30 dazwischenliegende Versionen desselben Benutzers werden nicht angezeigt)
Zeile 1: Zeile 1:
 
== requirements.txt ==
 
== requirements.txt ==
 
cd src<br>
 
cd src<br>
 
+
pip freeze > requirements.txt<br>
pip freeze > requirements.txt
 
 
 
 
pip install -r requirements.txt
 
pip install -r requirements.txt
  
Zeile 10: Zeile 8:
 
virtualenv venv<br>
 
virtualenv venv<br>
 
venv\Scripts\activate<br>
 
venv\Scripts\activate<br>
== exe aus Python Project erstellen ==
+
deactivate
[https://youtu.be/p3tSLatmGvU Convert GUI App to Real Program - Python to exe to setup wizard]
+
 
 +
== STM_GUI.exe aus Python Project erstellen ==
 +
Youtube [https://youtu.be/p3tSLatmGvU Convert GUI App to Real Program - Python to exe to setup wizard]<br>
 +
 
 +
'''Bundle scripts and assets'''
 +
=== 1. Pyinstaller ===
 +
pip install pyinstaller<br>
 +
cd src<br>
 +
''pyinstaller --name STM_GUI --onefile --windowed --icon=dist/assets/stm_symbol.ico Master.py''<br>
 +
 
 +
creates  STM_GUI.exe <br>
 +
 
 +
 
 +
'''Assets'''<br>
 +
setup.ico<br>
 +
stm_symbol.ico<br>
 +
 
 +
=== 2. Inno Setup ===
 +
uses C:\Users\peter\STM_GUI\STM_GUI_2023_03-master\src\dist\inno_icon.iss <br>
 +
creates STM-GUI_windows_1.5.setup.exe on desktop<br>
 +
 
 +
'''Copy STM-GUI_windows_1.5.setup.exe to Github'''<br>
 +
 
 +
== icon_found im programm==
  
 +
'''Base path icon'''<br>
 +
1. Python<br>
 +
base_path:  C:\Users\peter\STM_GUI\STM_GUI_2023_03-master<br>
 +
icon found: C:\Users\peter\STM_GUI\STM_GUI_2023_03-master\src\dist\Assets\stm_symbol.ico
  
== Pyinstaller ==
+
2. pyinstaller<br>
 +
base_path:  C:\Users\peter\STM_GUI\STM_GUI_2023_03-master\src\dist<br>
 +
icon found: C:\Users\peter\STM_GUI\STM_GUI_2023_03-master\src\dist\Assets\stm_symbol.ico<br>
  
Start App '''Inno Setup'''
+
3. INNO setup<br>
 +
base_path:  C:\Program Files (x86)\STM-GUI<br>
 +
icon found: C:\Program Files (x86)\STM-GUI\stm_symbol.ico

Aktuelle Version vom 1. August 2023, 10:28 Uhr

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=dist/assets/stm_symbol.ico Master.py

creates STM_GUI.exe


Assets
setup.ico
stm_symbol.ico

2. Inno Setup

uses C:\Users\peter\STM_GUI\STM_GUI_2023_03-master\src\dist\inno_icon.iss
creates STM-GUI_windows_1.5.setup.exe on desktop

Copy STM-GUI_windows_1.5.setup.exe to Github

icon_found im programm

Base path icon
1. Python
base_path: C:\Users\peter\STM_GUI\STM_GUI_2023_03-master
icon found: C:\Users\peter\STM_GUI\STM_GUI_2023_03-master\src\dist\Assets\stm_symbol.ico

2. pyinstaller
base_path: C:\Users\peter\STM_GUI\STM_GUI_2023_03-master\src\dist
icon found: C:\Users\peter\STM_GUI\STM_GUI_2023_03-master\src\dist\Assets\stm_symbol.ico

3. INNO setup
base_path: C:\Program Files (x86)\STM-GUI
icon found: C:\Program Files (x86)\STM-GUI\stm_symbol.ico