From fb9275e13a881811fd0c11a54a3db91a165b744e Mon Sep 17 00:00:00 2001 From: Dusk-92 Date: Thu, 3 Sep 2026 20:50:38 +0200 Subject: [PATCH] Use cached WowPresence fallback offline --- setup_tool_dynamic.py | 19 +++++++++++++++---- 1 file changed, 15 insertions(+), 4 deletions(-) diff --git a/setup_tool_dynamic.py b/setup_tool_dynamic.py index 29256de..d3ec531 100644 --- a/setup_tool_dynamic.py +++ b/setup_tool_dynamic.py @@ -1318,10 +1318,21 @@ class ModernWowSetupTool(WowSetupTool): exc, ) else: - raise RuntimeError( - "Could not install WowPresence from " - "https://github.com/Dusk-92/WowPresence releases." - ) from exc + try: + remote_packages.install_cached_wowpresence( + target, + progress=self._report_download_progress, + ) + except Exception as fallback_exc: + raise RuntimeError( + "Could not install WowPresence from its online source " + "and no validated local fallback is available." + ) from fallback_exc + self._warn_offline( + "WowPresence", + "The last validated cached WowPresence package was installed instead.", + exc, + ) # Remove the old test-branch filenames after a successful # migration. The legacy config directory is intentionally