mirror of
https://github.com/tcsenpai/swingmusic.git
synced 2025-06-06 03:05:35 +00:00
remove traces of hardcoded release version
+ update homepage image
This commit is contained in:
parent
e85793875b
commit
5b332bebb5
BIN
.github/images/homepage.webp
vendored
BIN
.github/images/homepage.webp
vendored
Binary file not shown.
Before Width: | Height: | Size: 132 KiB After Width: | Height: | Size: 127 KiB |
@ -179,5 +179,5 @@ class HandleArgs:
|
|||||||
@staticmethod
|
@staticmethod
|
||||||
def handle_version():
|
def handle_version():
|
||||||
if any((a in ARGS for a in ALLARGS.version)):
|
if any((a in ARGS for a in ALLARGS.version)):
|
||||||
print(settings.Release.APP_VERSION)
|
print(settings.Keys.SWINGMUSIC_APP_VERSION)
|
||||||
sys.exit(0)
|
sys.exit(0)
|
||||||
|
@ -15,10 +15,6 @@ else:
|
|||||||
IS_BUILD = False
|
IS_BUILD = False
|
||||||
|
|
||||||
|
|
||||||
class Release:
|
|
||||||
APP_VERSION = "1.4.0"
|
|
||||||
|
|
||||||
|
|
||||||
class Paths:
|
class Paths:
|
||||||
XDG_CONFIG_DIR = ""
|
XDG_CONFIG_DIR = ""
|
||||||
USER_HOME_DIR = os.path.expanduser("~")
|
USER_HOME_DIR = os.path.expanduser("~")
|
||||||
@ -250,7 +246,7 @@ class Keys:
|
|||||||
cls.LASTFM_API_KEY = configs.LASTFM_API_KEY
|
cls.LASTFM_API_KEY = configs.LASTFM_API_KEY
|
||||||
cls.PLUGIN_LYRICS_AUTHORITY = configs.PLUGIN_LYRICS_AUTHORITY
|
cls.PLUGIN_LYRICS_AUTHORITY = configs.PLUGIN_LYRICS_AUTHORITY
|
||||||
cls.PLUGIN_LYRICS_ROOT_URL = configs.PLUGIN_LYRICS_ROOT_URL
|
cls.PLUGIN_LYRICS_ROOT_URL = configs.PLUGIN_LYRICS_ROOT_URL
|
||||||
cls.SWINGMUSIC_APP_VERSION = Release.APP_VERSION
|
cls.SWINGMUSIC_APP_VERSION = configs.SWINGMUSIC_APP_VERSION
|
||||||
|
|
||||||
cls.verify_keys()
|
cls.verify_keys()
|
||||||
|
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
import os
|
import os
|
||||||
|
|
||||||
from app.settings import FLASKVARS, TCOLOR, Paths, Release
|
from app.settings import FLASKVARS, TCOLOR, Keys, Paths
|
||||||
from app.utils.network import get_ip
|
from app.utils.network import get_ip
|
||||||
|
|
||||||
|
|
||||||
@ -10,7 +10,7 @@ def log_startup_info():
|
|||||||
os.system("cls" if os.name == "nt" else "echo -e \\\\033c")
|
os.system("cls" if os.name == "nt" else "echo -e \\\\033c")
|
||||||
|
|
||||||
print(lines)
|
print(lines)
|
||||||
print(f"{TCOLOR.HEADER}SwingMusic {Release.APP_VERSION} {TCOLOR.ENDC}")
|
print(f"{TCOLOR.HEADER}SwingMusic {Keys.SWINGMUSIC_APP_VERSION} {TCOLOR.ENDC}")
|
||||||
|
|
||||||
adresses = [FLASKVARS.get_flask_host()]
|
adresses = [FLASKVARS.get_flask_host()]
|
||||||
|
|
||||||
@ -24,6 +24,6 @@ def log_startup_info():
|
|||||||
f"➤ {TCOLOR.OKGREEN}http://{address}:{FLASKVARS.get_flask_port()}{TCOLOR.ENDC}"
|
f"➤ {TCOLOR.OKGREEN}http://{address}:{FLASKVARS.get_flask_port()}{TCOLOR.ENDC}"
|
||||||
)
|
)
|
||||||
|
|
||||||
print(lines+"\n")
|
print(lines + "\n")
|
||||||
|
|
||||||
print(f"{TCOLOR.YELLOW}Data folder: {Paths.get_app_dir()}{TCOLOR.ENDC}")
|
print(f"{TCOLOR.YELLOW}Data folder: {Paths.get_app_dir()}{TCOLOR.ENDC}")
|
||||||
|
Loading…
x
Reference in New Issue
Block a user