mirror of
https://github.com/GravitLauncher/Launcher
synced 2025-03-28 20:18:21 +03:00
[FIX] Опечатки в ProGuardBuildTask.
This commit is contained in:
parent
f522f5014c
commit
64942b9852
1 changed files with 3 additions and 6 deletions
|
@ -25,8 +25,8 @@ public String getName() {
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public Path process(Path inputFile) throws IOException {
|
public Path process(Path inputFile) throws IOException {
|
||||||
|
Path outputJar = server.launcherBinary.nextLowerPath(this);
|
||||||
if (server.config.enabledProGuard) {
|
if (server.config.enabledProGuard) {
|
||||||
Path outputJar = server.launcherBinary.nextLowerPath(this);
|
|
||||||
Configuration proguard_cfg = new Configuration();
|
Configuration proguard_cfg = new Configuration();
|
||||||
ConfigurationParser parser = new ConfigurationParser(server.proguardConf.buildConfig(inputFile, outputJar),
|
ConfigurationParser parser = new ConfigurationParser(server.proguardConf.buildConfig(inputFile, outputJar),
|
||||||
server.proguardConf.proguard.toFile(), System.getProperties());
|
server.proguardConf.proguard.toFile(), System.getProperties());
|
||||||
|
@ -37,12 +37,9 @@ public Path process(Path inputFile) throws IOException {
|
||||||
} catch (ParseException e) {
|
} catch (ParseException e) {
|
||||||
LogHelper.error(e);
|
LogHelper.error(e);
|
||||||
}
|
}
|
||||||
return outputJar;
|
} else
|
||||||
} else {
|
|
||||||
Path outputJar = server.launcherBinary.nextPath("non-obf");
|
|
||||||
IOHelper.copy(inputFile, outputJar);
|
IOHelper.copy(inputFile, outputJar);
|
||||||
return outputJar;
|
return outputJar;
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|
Loading…
Reference in a new issue