refactor: externalize app configuration to JSON and unify UI color scheme constants
This commit is contained in:
@@ -17,14 +17,13 @@ from typing import Callable
|
||||
from urllib.request import urlopen, Request
|
||||
from urllib.error import URLError
|
||||
import json
|
||||
from .config import APP_INFO
|
||||
|
||||
# Aktuelle Version des Programms
|
||||
CURRENT_VERSION = "2.0.0"
|
||||
|
||||
# Gitea API-URL für Releases
|
||||
GITEA_API_BASE = "https://git.joelunger.de/api/v1"
|
||||
REPO_OWNER = "public"
|
||||
REPO_NAME = "fcco-Converter"
|
||||
# Aktuelle Version des Programms und Repos (aus config.json)
|
||||
CURRENT_VERSION = APP_INFO["app_version"]
|
||||
GITEA_API_BASE = APP_INFO["gitea_api_base"]
|
||||
REPO_OWNER = APP_INFO["repo_owner"]
|
||||
REPO_NAME = APP_INFO["repo_name"]
|
||||
RELEASES_URL = f"{GITEA_API_BASE}/repos/{REPO_OWNER}/{REPO_NAME}/releases"
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user