Skip to content

Commit

Permalink
Fix build on Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
Technici4n authored and malte0811 committed Sep 23, 2024
1 parent fccd23b commit f0006dd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -419,7 +419,7 @@ def pngPatterns = ["**/*.png"]
for (dir in project.sourceSets.main.resources.srcDirs) {
fileTree(dir: dir, includes: pngPatterns).each { file ->
// TODO relative to some reasonable root?
tasks.create(name: "optimizePng_"+file.getPath().replace('/', '_'), type: Exec) {
tasks.create(name: "optimizePng_"+file.getPath().replaceAll('[/\\\\:]', '_'), type: Exec) {
// TODO log size reductions? Somehow this is all very brittle right now
executable "optipng"
args "-q", "-o7", "-zm1-9", "-strip", "all", file
Expand Down

0 comments on commit f0006dd

Please sign in to comment.