mirror of
https://github.com/Dvorinka/swingmusic-extended.git
synced 2026-06-04 20:43:04 +00:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user