mirror of
https://github.com/GravitLauncher/Launcher
synced 2024-12-23 00:51:01 +03:00
[FIX] Support SPI in Launcher
This commit is contained in:
parent
54cb175ae7
commit
2def9c20d9
1 changed files with 6 additions and 1 deletions
|
@ -55,10 +55,15 @@ public Path process(Path inputFile) throws IOException {
|
|||
|
||||
private void attach(ZipOutputStream output, Path inputFile, List<Path> lst) throws IOException {
|
||||
for (Path p : lst) {
|
||||
AdditionalFixesApplyTask.apply(inputFile, p, output, srv, (e) -> exclusions.stream().anyMatch(e.getName()::startsWith), false);
|
||||
AdditionalFixesApplyTask.apply(inputFile, p, output, srv, (e) -> filter(e.getName()), false);
|
||||
}
|
||||
}
|
||||
|
||||
private boolean filter(String name) {
|
||||
if(name.startsWith("META-INF/services")) return false;
|
||||
return exclusions.stream().anyMatch(name::startsWith);
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean allowDelete() {
|
||||
return true;
|
||||
|
|
Loading…
Reference in a new issue