mirror of
https://github.com/recloudstream/gradle.git
synced 2024-08-14 23:56:59 +00:00
ok ig lets try this
This commit is contained in:
parent
18915372d0
commit
e46204f939
1 changed files with 5 additions and 6 deletions
|
@ -127,14 +127,13 @@ fun registerTasks(project: Project) {
|
||||||
zip.destinationDirectory.set(project.buildDir)
|
zip.destinationDirectory.set(project.buildDir)
|
||||||
|
|
||||||
it.doLast { task ->
|
it.doLast { task ->
|
||||||
extension.fileSize = task.outputs.files.singleFile.length()
|
try {
|
||||||
task.logger.lifecycle("Made Cloudstream package at ${task.outputs.files.singleFile}")
|
extension.fileSize = task.outputs.files.singleFile.length()
|
||||||
}
|
}
|
||||||
|
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}")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue