get the hash of all jars in the dist directory

This commit is contained in:
Babbaj 2020-03-25 20:34:54 -04:00
parent 6cc31a9422
commit b13b86b67a
No known key found for this signature in database
GPG Key ID: 48FD0BEFD63C8E3F
1 changed files with 2 additions and 3 deletions

View File

@ -59,9 +59,8 @@ public class CreateDistTask extends BaritoneGradleTask {
Files.copy(this.artifactUnoptimizedPath, unoptimized, REPLACE_EXISTING); Files.copy(this.artifactUnoptimizedPath, unoptimized, REPLACE_EXISTING);
// Calculate all checksums and format them like "shasum" // Calculate all checksums and format them like "shasum"
// TODO: get the hash for both forge and non forge jars List<String> shasum = Files.walk(getRelativeFile("dist"), 1)
List<String> shasum = Stream.of(api, standalone, unoptimized) .filter(p -> p.toString().endsWith(".jar"))
.filter(Files::exists)
.map(path -> sha1(path) + " " + path.getFileName().toString()) .map(path -> sha1(path) + " " + path.getFileName().toString())
.collect(Collectors.toList()); .collect(Collectors.toList());