Erste Version
This commit is contained in:
20
build.py
Normal file
20
build.py
Normal file
@@ -0,0 +1,20 @@
|
||||
import PyInstaller.__main__
|
||||
import os
|
||||
import shutil
|
||||
|
||||
# Lösche alte build und dist Ordner
|
||||
if os.path.exists('build'):
|
||||
shutil.rmtree('build')
|
||||
if os.path.exists('dist'):
|
||||
shutil.rmtree('dist')
|
||||
|
||||
# PyInstaller Konfiguration
|
||||
PyInstaller.__main__.run([
|
||||
'serien_checker.py',
|
||||
'--onefile',
|
||||
'--windowed',
|
||||
'--name=Serien-Checker',
|
||||
'--icon=icon.ico', # Optional: Fügen Sie ein Icon hinzu wenn gewünscht
|
||||
'--add-data=series_config.json;.', # Fügt die Konfigurationsdatei hinzu wenn sie existiert
|
||||
'--clean'
|
||||
])
|
Reference in New Issue
Block a user