29 lines
783 B
Batchfile
29 lines
783 B
Batchfile
@echo off
|
|
REM build_exe.bat - Automatisches Update der schwifty-Datenbank und Erstellung der EXE
|
|
REM Nutzung: build_exe.bat
|
|
|
|
setlocal
|
|
|
|
REM Virtuelle Umgebung aktivieren
|
|
echo Aktiviere virtuelle Umgebung...
|
|
call venv\Scripts\activate.bat
|
|
|
|
REM Python-Pfade aktualisieren und PyInstaller installieren
|
|
echo Aktualisiere schwifty-Datenbank...
|
|
python -m pip install --upgrade schwifty
|
|
python -m pip install --upgrade pyinstaller
|
|
|
|
REM Neue EXE erstellen
|
|
echo Erstelle iban_csv_converter.exe...
|
|
python -m PyInstaller --onefile --noconache --name iban_csv_converter.exe iban_csv_converter.py
|
|
|
|
REM Ergebnis kopieren
|
|
if exist dist\iban_csv_converter.exe (
|
|
echo EXE erfolgreich erstellt: dist\iban_csv_converter.exe
|
|
) else (
|
|
echo FEHLER: EXE wurde nicht erstellt!
|
|
exit /b 1
|
|
)
|
|
|
|
pause
|