mirror of
https://github.com/Dvorinka/swingmusic-extended.git
synced 2026-06-05 04:53:01 +00:00
fix client: download fallback to github release client
+ add fallback release version data to version.txt + move classproperty class to utils + update Dockerfile to install from source using pip install + move version info to Metadata class in settings.py
This commit is contained in:
@@ -1,10 +1,9 @@
|
||||
from swingmusic.settings import TCOLOR, Paths
|
||||
from swingmusic.settings import TCOLOR, Metadata, Paths
|
||||
from swingmusic.utils.network import get_ip
|
||||
from importlib import metadata
|
||||
|
||||
|
||||
def log_startup_info(host: str, port: int):
|
||||
print(f"{TCOLOR.HEADER}Swing Music v{metadata.version('swingmusic')} {TCOLOR.ENDC}")
|
||||
print(f"{TCOLOR.HEADER}Swing Music v{Metadata.version} {TCOLOR.ENDC}")
|
||||
|
||||
addresses = [host]
|
||||
|
||||
@@ -14,8 +13,6 @@ def log_startup_info(host: str, port: int):
|
||||
|
||||
print("Server running on:\n")
|
||||
for address in addresses:
|
||||
print(
|
||||
f"{TCOLOR.OKGREEN}http://{address}:{port}{TCOLOR.ENDC}"
|
||||
)
|
||||
print(f"{TCOLOR.OKGREEN}http://{address}:{port}{TCOLOR.ENDC}")
|
||||
|
||||
print(f"\n{TCOLOR.YELLOW}Data folder: {Paths().config_dir}{TCOLOR.ENDC}\n")
|
||||
|
||||
Reference in New Issue
Block a user