mirror of
https://github.com/f-droid/fdroidserver.git
synced 2025-11-05 15:00:30 +03:00
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:
parent
ab8d51012d
commit
8ecff5bd61
2 changed files with 11 additions and 8 deletions
|
|
@ -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):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue