install: fix download dir when fetching from GitHub Releases

This commit is contained in:
Hans-Christoph Steiner 2024-11-26 15:31:47 +01:00
parent 8c81033ea3
commit 8fc340aaca

View File

@ -115,7 +115,8 @@ def download_fdroid_apk_from_github(privacy_mode=False):
token = None token = None
gh = github.GithubApi(token, 'https://github.com/f-droid/fdroidclient') gh = github.GithubApi(token, 'https://github.com/f-droid/fdroidclient')
latest_apk = gh.get_latest_apk() latest_apk = gh.get_latest_apk()
return net.download_file(latest_apk) filename = os.path.basename(latest_apk)
return net.download_file(latest_apk, os.path.join(common.get_cachedir(), filename))
def download_fdroid_apk_from_ipns(privacy_mode=False): def download_fdroid_apk_from_ipns(privacy_mode=False):