Add patch version to file name

This commit is contained in:
Nikhil Badyal
2024-12-24 13:34:48 +05:30
committed by Nikhil Badyal
parent 99537fa5f1
commit 7444ef9029
+1 -1
View File
@@ -81,7 +81,7 @@ class APP(object):
""" """
current_date = datetime.now(timezone(time_zone)) current_date = datetime.now(timezone(time_zone))
formatted_date = current_date.strftime("%Y%b%d_%I%M%p").upper() formatted_date = current_date.strftime("%Y%b%d_%I%M%p").upper()
return f"Re-{self.app_name}-{slugify(self.app_version)}-{formatted_date}-output.apk" return f"Re-{self.app_name}-app-version{slugify(self.app_version)}-{formatted_date}-patch-version-{slugify(self.resource["patches"]["version"])}output.apk"
def __str__(self: "APP") -> str: def __str__(self: "APP") -> str:
"""Returns the str representation of the app.""" """Returns the str representation of the app."""