get_release_filename() to handle any file type, not just APKs

In order to support non-APK files that are built by `fdroid build`, this
function that names the file releases needs to be generic.
This commit is contained in:
Hans-Christoph Steiner 2016-10-31 16:51:34 +01:00
parent ab8d51012d
commit 8ecff5bd61
2 changed files with 11 additions and 8 deletions

View file

@ -459,8 +459,11 @@ def apknameinfo(filename):
return result
def getapkname(app, build):
return "%s_%s.apk" % (app.id, build.vercode)
def get_release_filename(app, build):
if build.output:
return "%s_%s.%s" % (app.id, build.vercode, get_file_extension(build.output))
else:
return "%s_%s.apk" % (app.id, build.vercode)
def getsrcname(app, build):