bat Dateien zum Erstellen einer .exe aus einem Python Skript dazu
This commit is contained in:
@@ -0,0 +1,10 @@
|
|||||||
|
echo === EXE erstellen ===
|
||||||
|
|
||||||
|
@echo off
|
||||||
|
call .venv\Scripts\activate.bat
|
||||||
|
pyinstaller --onefile filter_zip_no_stl.py
|
||||||
|
|
||||||
|
echo.
|
||||||
|
echo === Fertig! ===
|
||||||
|
echo EXE liegt unter: dist\filter_zip_no_stl.exe
|
||||||
|
pause
|
||||||
@@ -0,0 +1,2 @@
|
|||||||
|
# Für EXE-Erstellung
|
||||||
|
pyinstaller>=6.0
|
||||||
@@ -0,0 +1,32 @@
|
|||||||
|
@echo off
|
||||||
|
echo === Virtuelle Umgebung einrichten ===
|
||||||
|
|
||||||
|
REM Prüfen ob Python verfügbar ist
|
||||||
|
python --version >nul 2>&1
|
||||||
|
if errorlevel 1 (
|
||||||
|
echo Fehler: Python nicht gefunden!
|
||||||
|
echo Bitte Python installieren und zum PATH hinzufügen.
|
||||||
|
pause
|
||||||
|
exit /b 1
|
||||||
|
)
|
||||||
|
|
||||||
|
REM Virtuelle Umgebung erstellen
|
||||||
|
echo Erstelle .venv ...
|
||||||
|
python -m venv .venv
|
||||||
|
|
||||||
|
REM Aktivieren und Dependencies installieren
|
||||||
|
echo Aktiviere .venv und installiere Abhängigkeiten ...
|
||||||
|
call .venv\Scripts\activate.bat
|
||||||
|
python -m pip install --upgrade pip
|
||||||
|
pip install -r requirements.txt
|
||||||
|
|
||||||
|
echo.
|
||||||
|
echo === Fertig! ===
|
||||||
|
echo.
|
||||||
|
echo Zum Aktivieren der Umgebung:
|
||||||
|
echo .venv\Scripts\activate
|
||||||
|
echo.
|
||||||
|
echo Zum Erstellen der EXE:
|
||||||
|
echo pyinstaller --onefile filter_zip_no_stl.py
|
||||||
|
echo.
|
||||||
|
pause
|
||||||
Reference in New Issue
Block a user