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)
|
||||
|
||||
it.doLast { task ->
|
||||
try {
|
||||
extension.fileSize = task.outputs.files.singleFile.length()
|
||||
task.logger.lifecycle("Made Cloudstream package at ${task.outputs.files.singleFile}")
|
||||
}
|
||||
|
||||
it.finalizedBy {
|
||||
if (extension.fileSize == null) {
|
||||
catch(Exception e) {
|
||||
extension.fileSize = -1L
|
||||
}
|
||||
task.logger.lifecycle("Made Cloudstream package at ${task.outputs.files.singleFile}")
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue