Utils Intern: Unterschied zwischen den Versionen

Aus Wiki-500-Euro-RTM
Wechseln zu: Navigation, Suche
(2. Inno Setup)
(base_path_icon im Programm)
Zeile 32: Zeile 32:
  
  
== base_path_icon im Programm==
+
== icon_found im programm==
 +
 
 +
'''Base path icon'''<br>
 +
C:\Users\peter\STM_GUI\STM_GUI_2023_03-master\src\dist
 +
os.path.join(root,relative_path)
 +
'''Icon found'''<br>
 +
C:\Users\peter\STM_GUI\STM_GUI_2023_03-master\src\dist\Assets\stm_symbol.ico

Version vom 28. Juli 2023, 12:16 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
C:\Users\peter\STM_GUI\STM_GUI_2023_03-master\src\dist os.path.join(root,relative_path) Icon found
C:\Users\peter\STM_GUI\STM_GUI_2023_03-master\src\dist\Assets\stm_symbol.ico