fix: IconConverter using deprecated inkscape --verb option (#7106)

* fix: IconConverter using deprecated inkscape --verb option

* refactor: remove unused option in tools/build.gradle
This commit is contained in:
Joel 2022-07-02 14:10:03 +00:00 committed by GitHub
parent 97d077df84
commit aa310bd205
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 1 additions and 2 deletions

View File

@ -20,7 +20,6 @@ import java.util.concurrent.ExecutorService
import java.util.concurrent.Executors
def genFolder = "../core/assets-raw/sprites_out/generated/"
def doAntialias = !project.hasProperty("disableAntialias")
def enableAA = true
@groovy.transform.CompileStatic

View File

@ -28,7 +28,7 @@ public class IconConverter{
}
}
Seq<String> args = Seq.with("inkscape", "--batch-process", "--verb", "EditSelectAll;SelectionUnion;FitCanvasToSelectionOrDrawing;FileSave");
Seq<String> args = Seq.with("inkscape", "--batch-process", "--actions", "select-all; path-union; fit-canvas-to-selection; export-overwrite; export-do");
args.addAll(files.map(Fi::absolutePath));
Fi.get("fontgen/extra").findAll().each(f -> f.copyTo(Fi.get("fontgen/icons").child(f.name())));