fix: use mirror for binary downloads, imgur for images while GitHub org is flagged

This commit is contained in:
CloakHQ
2026-02-26 06:20:33 +01:00
parent 8cecebf118
commit cc501d8ef6
9 changed files with 17 additions and 10 deletions
+1 -1
View File
@@ -1 +1 @@
__version__ = "0.1.7"
__version__ = "0.1.11"
+1 -1
View File
@@ -146,7 +146,7 @@ def _version_newer(a: str, b: str) -> bool:
# ---------------------------------------------------------------------------
DOWNLOAD_BASE_URL = os.environ.get(
"CLOAKBROWSER_DOWNLOAD_URL",
"https://github.com/CloakHQ/cloakbrowser/releases/download",
"https://cloakbrowser.dev",
)
GITHUB_API_URL = "https://api.github.com/repos/CloakHQ/cloakbrowser/releases"
+1
View File
@@ -115,6 +115,7 @@ def _download_and_extract(version: str | None = None) -> None:
try:
_download_file(url, tmp_path)
_extract_archive(tmp_path, binary_dir, binary_path)
logger.info("Visit https://cloakbrowser.dev for updates and release notifications.")
finally:
# Clean up temp file
tmp_path.unlink(missing_ok=True)