add izzy badge to download links, update translation fetch script

This commit is contained in:
Helium314 2024-04-19 22:58:58 +02:00
parent e2b687a567
commit f1b4e3ad3a
2 changed files with 6 additions and 4 deletions

View file

@ -3,7 +3,8 @@ HeliBoard is a privacy-conscious and customizable open-source keyboard, based on
Does not use internet permission, and thus is 100% offline.
[<img src="https://fdroid.gitlab.io/artwork/badge/get-it-on.png" alt="Get it on F-Droid" height="80">](https://f-droid.org/packages/helium314.keyboard/)
[<img src="https://user-images.githubusercontent.com/663460/26973090-f8fdc986-4d14-11e7-995a-e7c5e79ed925.png" alt="Download APK from GitHub" height="80">](https://github.com/Helium314/HeliBoard/releases/latest)
[<img src="https://user-images.githubusercontent.com/663460/26973090-f8fdc986-4d14-11e7-995a-e7c5e79ed925.png" alt="Get APK from GitHub" height="80">](https://github.com/Helium314/HeliBoard/releases/latest)
[<img src="https://gitlab.com/IzzyOnDroid/repo/-/raw/master/assets/IzzyOnDroid.png" alt="Get it on IzzyOnDroid" height="80">](https://apt.izzysoft.de/fdroid/index/apk/helium314.keyboard)
## Table of Contents

View file

@ -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