refactor Paths and update build workflow

+ rename app_dir -> config_dir and config_dir to config_parent
+ bundle web client as zip
+ bundle and extract client zip when running pyinstaller builds
+ installer pyinstaller as main dependency
+ remove fallback client flag
+ handle already used port
+ add assethandler class
+ remove some startup logs
+ ignore wheels and client.zip files
This commit is contained in:
cwilvx
2025-08-28 16:38:49 +03:00
parent e770606567
commit ebc740a5a5
15 changed files with 1037 additions and 955 deletions
+4 -3
View File
@@ -10,12 +10,13 @@ from swingmusic.settings import Paths
from pathlib import Path
from PIL import Image
def handle_password_reset(path:dict[str,Path]):
def handle_password_reset(config_parent: Path):
"""
Handles the --password-reset argument. Resets the password.
"""
Paths(**path)
Paths(config_parent=config_parent)
setup_sqlite()
@@ -64,4 +65,4 @@ def create_image(width, height, color1, color2):
# Paste the resized image onto the padded image
padded_image.paste(image, (x, y), image)
return padded_image
return padded_image