mirror of
https://github.com/Helium314/HeliBoard.git
synced 2025-04-22 15:19:10 +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
|
@ -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
|
||||
|
||||
|
|
|
@ -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
Reference in a new issue