mirror of
https://github.com/Helium314/HeliBoard.git
synced 2025-05-15 14:32:45 +00:00
add izzy badge to download links, update translation fetch script
This commit is contained in:
parent
e2b687a567
commit
f1b4e3ad3a
2 changed files with 6 additions and 4 deletions
|
@ -18,10 +18,11 @@ def update_translations():
|
|||
url = "https://translate.codeberg.org/download/heliboard/?format=zip"
|
||||
zip_file_name = "translations.zip"
|
||||
urlretrieve(url, zip_file_name)
|
||||
# extract all in heliboard/heliboard/app/src/main/res
|
||||
# extract all in heliboard/heliboard/app/src/main/res and heliboard/heliboard/fastlane/metadata
|
||||
with zipfile.ZipFile(zip_file_name, "r") as f:
|
||||
for file in f.filelist:
|
||||
if not file.filename.startswith("heliboard/heliboard/app/src/main/res"):
|
||||
if not file.filename.startswith("heliboard/heliboard/app/src/main/res")\
|
||||
and not file.filename.startswith("heliboard/heliboard/fastlane/metadata"):
|
||||
continue
|
||||
file.filename = file.filename.replace("heliboard/heliboard/", "")
|
||||
f.extract(file)
|
||||
|
@ -40,7 +41,7 @@ def update_dict_list():
|
|||
# gradle = "gradlew" # Linux
|
||||
# gradle = "gradlew.bat" # Windows
|
||||
gradle = "../../builder/realgradle.sh" # weird path for historic reasons
|
||||
result = subprocess.run([gradle, ":tools:make-dict-list:makeDictList"])
|
||||
result = subprocess.run([gradle, ":tools:make-dict-list:makeDictList"]) # todo: replace with python code
|
||||
assert result.returncode == 0
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue