ok ig lets try this

This commit is contained in:
C10udburst 2022-08-19 15:28:29 +02:00
parent 18915372d0
commit e46204f939

View file

@ -127,14 +127,13 @@ fun registerTasks(project: Project) {
zip.destinationDirectory.set(project.buildDir) zip.destinationDirectory.set(project.buildDir)
it.doLast { task -> it.doLast { task ->
try {
extension.fileSize = task.outputs.files.singleFile.length() extension.fileSize = task.outputs.files.singleFile.length()
task.logger.lifecycle("Made Cloudstream package at ${task.outputs.files.singleFile}")
} }
catch(Exception e) {
it.finalizedBy {
if (extension.fileSize == null) {
extension.fileSize = -1L extension.fileSize = -1L
} }
task.logger.lifecycle("Made Cloudstream package at ${task.outputs.files.singleFile}")
} }
} }
} }