fix: update adoptium download url for new version

This commit is contained in:
Thomas Lee 2025-04-06 22:30:40 +08:00 committed by GitHub
parent 79b33ae3b0
commit 5dc0c01ae7
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -10,7 +10,7 @@ import requests
DOWNLOAD_TIMEOUT = int(os.getenv('DOWNLOAD_TIMEOUT', '1800')) DOWNLOAD_TIMEOUT = int(os.getenv('DOWNLOAD_TIMEOUT', '1800'))
BASE_PATH = os.getenv('TUNASYNC_WORKING_DIR') BASE_PATH = os.getenv('TUNASYNC_WORKING_DIR')
BASE_URL = os.getenv('TUNASYNC_UPSTREAM_URL', "https://packages.adoptium.net/artifactory") BASE_URL = os.getenv('TUNASYNC_UPSTREAM_URL', "https://packages.adoptium.net/ui/native")
FEATURE_VERSIONS = [8, 11, 17, 20, 21] FEATURE_VERSIONS = [8, 11, 17, 20, 21]
def download_file(url: str, dst_file: Path)->bool: def download_file(url: str, dst_file: Path)->bool: