Merge pull request #23 from kiwix/feature/cd-per-brand-p3

Downgrade semantic version
This commit is contained in:
BPH 2024-01-13 20:20:54 +01:00 committed by GitHub
commit b2cf126262
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 2 deletions

View File

@ -56,7 +56,8 @@ class InfoParser:
dict = {
"templates": ["ApplicationTemplate"],
"settings": {"base": {
"MARKETING_VERSION": self.version.semantic,
# TODO: change to .semantic, once builds are OK
"MARKETING_VERSION": self.version.semantic_downgraded,
"PRODUCT_BUNDLE_IDENTIFIER": f"org.kiwix.custom.{self.brand_name}",
"INFOPLIST_FILE": f"custom/{self._info_plist_path()}",
"INFOPLIST_KEY_CFBundleDisplayName": self._app_name(),

View File

@ -38,7 +38,7 @@ def _is_valid(tag):
if parser.version != version:
_exit_with_error(f"Invalid date in tag: {tag}, does not match year.month of ZIM file in {brand.info_file}, it should be: {parser.version.semantic}")
print(f"{brand.name} {version.semantic_downgraded}")
print(f"{brand.name} {version.build_number}")
else:
_exit_with_error(f"Invalid tag: {tag}")