We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 48b5547 commit a6b909bCopy full SHA for a6b909b
1 file changed
tools/release.py
@@ -18,9 +18,12 @@ def check_git():
18
19
# download and update translations
20
def update_translations():
21
+ import urllib.request
22
url = "https://translate.codeberg.org/download/heliboard/?format=zip"
23
zip_file_name = "translations.zip"
- urlretrieve(url, zip_file_name)
24
+ req = urllib.request.Request(url, headers={'Cookie': 'x-robot-challenge-2=passed'})
25
+ with urllib.request.urlopen(req) as response, open(zip_file_name, 'wb') as out_file:
26
+ out_file.write(response.read())
27
# extract all in heliboard/heliboard/app/src/main/res and heliboard/heliboard/fastlane/metadata
28
with zipfile.ZipFile(zip_file_name, "r") as f:
29
for file in f.filelist:
0 commit comments