Compare commits

..

1 Commits

Author SHA1 Message Date
skymike03
80844bda79 v2.3.0.4
- update links changed
2025-10-20 23:26:34 +02:00
2 changed files with 15 additions and 7 deletions

View File

@@ -13,7 +13,7 @@ except Exception:
pygame = None # type: ignore
# Version actuelle de l'application
app_version = "2.3.0.3"
app_version = "2.3.0.4"
def get_application_root():
@@ -91,10 +91,17 @@ API_KEY_REALDEBRID_PATH = os.path.join(SAVE_FOLDER, "RealDebridAPI.txt")
# URL
OTA_SERVER_URL = "https://github.com/RetroGameSets/RGSX/releases/download/latest/"
OTA_VERSION_ENDPOINT = os.path.join(OTA_SERVER_URL, "version.json")
OTA_UPDATE_ZIP = os.path.join(OTA_SERVER_URL, "RGSX_latest.zip")
# URL - GitHub Releases
GITHUB_REPO = "RetroGameSets/RGSX"
GITHUB_RELEASES_URL = f"https://github.com/{GITHUB_REPO}/releases"
# URLs pour les mises à jour OTA (Over-The-Air)
# Utilise le fichier RGSX_latest.zip qui pointe toujours vers la dernière version
OTA_UPDATE_ZIP = f"{GITHUB_RELEASES_URL}/latest/download/RGSX_latest.zip"
OTA_VERSION_ENDPOINT = "https://retrogamesets.fr/softs/version.json" # Endpoint pour vérifier la version disponible
# URLs legacy (conservées pour compatibilité)
OTA_SERVER_URL = "https://retrogamesets.fr/softs/"
OTA_data_ZIP = os.path.join(OTA_SERVER_URL, "games.zip")
#CHEMINS DES EXECUTABLES

View File

@@ -483,8 +483,9 @@ async def check_for_updates():
return True, _("network_no_update_available") if _ else "No update (local >= remote)"
# À ce stade latest_version est strictement > version locale
UPDATE_ZIP = OTA_UPDATE_ZIP.replace("RGSX.zip", f"RGSX_v{latest_version}.zip")
logger.debug(f"URL de mise à jour : {UPDATE_ZIP}")
# Utiliser l'URL RGSX_latest.zip qui pointe toujours vers la dernière version sur GitHub
UPDATE_ZIP = OTA_UPDATE_ZIP
logger.debug(f"URL de mise à jour : {UPDATE_ZIP} (version {latest_version})")
if latest_version != config.app_version:
config.current_loading_system = _("network_update_available").format(latest_version)