new helpers: get_output_extension() & get_release_apk_filename()

This also moves to the standard var names: appid & versionCode
This commit is contained in:
Hans-Christoph Steiner 2024-06-06 18:17:54 +02:00
parent 8b52740636
commit b933043ca1
2 changed files with 14 additions and 7 deletions

View file

@ -104,11 +104,6 @@ class IntegrationTest(unittest.TestCase):
for line in filtered:
f.write(line)
@staticmethod
def get_fdroid_apk_filename(file):
id, version_code, _ = get_apkid(file)
return f"{id}_{version_code}.apk"
@staticmethod
def copy_apks_into_repo():
def to_skip(name):
@ -126,8 +121,10 @@ class IntegrationTest(unittest.TestCase):
for f in FILES.glob("*.apk"):
if not to_skip(f.name):
appid, versionCode, _ignored = get_apkid(f)
shutil.copy(
f, Path("repo") / IntegrationTest.get_fdroid_apk_filename(f)
f,
Path("repo") / common.get_release_apk_filename(appid, versionCode),
)
@staticmethod