mirror of
https://github.com/CloakHQ/CloakBrowser.git
synced 2026-06-23 11:41:46 +02:00
fix: use mirror for binary downloads, imgur for images while GitHub org is flagged
This commit is contained in:
@@ -1 +1 @@
|
||||
__version__ = "0.1.7"
|
||||
__version__ = "0.1.11"
|
||||
|
||||
@@ -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"
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user