Allow jpg logos

This commit is contained in:
ligi 2023-04-08 16:39:57 +02:00
parent 8797d88f22
commit 3f37cbda9d
No known key found for this signature in database
GPG Key ID: 8E81894010ABF23D

View File

@ -208,8 +208,8 @@ fun checkIcon(icon: File, withIconDownload: Boolean, allIconCIDs: MutableSet<Str
}
val format = it["format"]
if (format !is String || (format != "png" && format != "svg")) {
error("Icon format must be a png or svg but was $format")
if (format !is String || (!setOf("png", "svg", "jpg").contains(format))) {
error("Icon format must be a png, svg or jpg but was $format")
}
if (iconDownloadFile.exists()) {