This commit is contained in:
Glavo 2025-07-31 20:38:19 +08:00
parent 94891a270b
commit 61d92395fc
2 changed files with 2 additions and 1 deletions

View File

@ -112,6 +112,7 @@ public class McbbsModpackCompletionTask extends CompletableFutureTask<Void> {
}
Path rootPath = repository.getVersionRoot(version).toPath();
Files.createDirectories(rootPath);
Map<McbbsModpackManifest.File, McbbsModpackManifest.File> localFiles = manifest.getFiles().stream().collect(Collectors.toMap(Function.identity(), Function.identity()));
@ -173,7 +174,6 @@ public class McbbsModpackCompletionTask extends CompletableFutureTask<Void> {
return executor.all(tasks.stream().filter(Objects::nonNull).collect(Collectors.toList()));
})).thenAcceptAsync(wrapConsumer(unused1 -> {
Path manifestFile = repository.getModpackConfiguration(version).toPath();
Files.createDirectories(manifestFile.getParent());
JsonUtils.writeToJsonFile(manifestFile,
new ModpackConfiguration<>(manifest, this.configuration.getType(), this.manifest.getName(), this.manifest.getVersion(),
this.manifest.getFiles().stream()

View File

@ -132,6 +132,7 @@ public class ModrinthInstallTask extends Task<Void> {
}
Path root = repository.getVersionRoot(name).toPath();
Files.createDirectories(root);
JsonUtils.writeToJsonFile(root.resolve("modrinth.index.json"), manifest);
}
}