[FIX] Build without proguard

This commit is contained in:
Gravita 2023-10-28 18:49:07 +07:00
parent 75f51c7727
commit e1429356df
1 changed files with 3 additions and 0 deletions

View File

@ -133,6 +133,9 @@ public class ProGuardComponent extends Component implements AutoCloseable, Recon
@Override
public Path process(Path inputFile) throws IOException {
if (!component.enabled) {
return inputFile;
}
LauncherBuildTask task = server.launcherBinary.getTaskBefore((x) -> proguardTaskName.equals(x.getName())).get();
Path lastPath = server.launcherBinary.nextPath(task);
if(Files.notExists(lastPath)) {