Commit a3535dcc authored by Vitaliy Vashchenko's avatar Vitaliy Vashchenko

Disabled optimization for release build

parent 4cb041a4
Pipeline #43695 passed with stages
in 278 minutes and 51 seconds
......@@ -64,7 +64,7 @@ release:
only:
- tags
script:
- ./gradlew clean assemble -PTABLEXIA_ASSETS_UPLOAD=true -PTABLEXIA_HD_ASSETS=true -PTABLEXIA_RELEASE_BUILD=true -PTABLEXIA_ASSETS_OPTIMIZE=true -PTABLEXIA_DESKTOP_ARTEFACTS=true
- ./gradlew clean assemble -PTABLEXIA_ASSETS_UPLOAD=true -PTABLEXIA_HD_ASSETS=true -PTABLEXIA_RELEASE_BUILD=true -PTABLEXIA_DESKTOP_ARTEFACTS=true
retry: 2
artifacts:
paths:
......
......@@ -408,23 +408,23 @@ task prepareHdGraphicAssets(dependsOn: prepareHdAssets) {
}
}
} //optimizing for uploading
// if (project.hasProperty('TABLEXIA_ASSETS_OPTIMIZE') && Boolean.valueOf(TABLEXIA_ASSETS_OPTIMIZE).booleanValue()) {
// println "HD ASSETS OPTIMIZATION: ENABLED."
// println "HD ASSETS OPTIMIZATION: START."
// new File("${assetsDir.absolutePath}/${assetsDestinationDirName}/").eachDir() { dir ->
// dir.eachFileRecurse() { file ->
// if (file.name.endsWith(".png") && !file.absolutePath.contains("excluded")) {
// println "Optimizing: ${file.name}"
// exec {
// commandLine 'pngquant', '--ext', '.png', '--nofs', '-f', 256, file.absolutePath
// }
// }
// }
// }
// println "HD ASSETS OPTIMIZATION: FINISH."
// } else {
// println "ASSETS OPTIMIZATION NOT CONFIGURED -> SKIPPING OPTIMIZATION"
// }
if (project.hasProperty('TABLEXIA_ASSETS_OPTIMIZE') && Boolean.valueOf(TABLEXIA_ASSETS_OPTIMIZE).booleanValue()) {
println "HD ASSETS OPTIMIZATION: ENABLED."
println "HD ASSETS OPTIMIZATION: START."
new File("${assetsDir.absolutePath}/${assetsDestinationDirName}/").eachDir() { dir ->
dir.eachFileRecurse() { file ->
if (file.name.endsWith(".png") && !file.absolutePath.contains("excluded")) {
println "Optimizing: ${file.name}"
exec {
commandLine 'pngquant', '--ext', '.png', '--nofs', '-f', 256, file.absolutePath
}
}
}
}
println "HD ASSETS OPTIMIZATION: FINISH."
} else {
println "ASSETS OPTIMIZATION NOT CONFIGURED -> SKIPPING OPTIMIZATION"
}
} else {
println "HD PACK IS NOT REQUESTED"
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment