Skip to content

Instantly share code, notes, and snippets.

@mega-arbuz
Last active February 9, 2019 22:58
Show Gist options
  • Save mega-arbuz/9073fccc6e6ad57c371c7957b2b4bb0c to your computer and use it in GitHub Desktop.
Save mega-arbuz/9073fccc6e6ad57c371c7957b2b4bb0c to your computer and use it in GitHub Desktop.
Use app name and version for APK file name
def get_target_file_name(app_name, app_version):
app_name = app_name.lower()
app_version = app_version.replace('.', '_')
return '{name}_{version}.apk'.format(name=app_name, version=app_version).replace(' ','')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment