mirror of https://github.com/cabaletta/baritone
get the hash of all jars in the dist directory
This commit is contained in:
parent
6cc31a9422
commit
b13b86b67a
|
@ -59,9 +59,8 @@ public class CreateDistTask extends BaritoneGradleTask {
|
|||
Files.copy(this.artifactUnoptimizedPath, unoptimized, REPLACE_EXISTING);
|
||||
|
||||
// Calculate all checksums and format them like "shasum"
|
||||
// TODO: get the hash for both forge and non forge jars
|
||||
List<String> shasum = Stream.of(api, standalone, unoptimized)
|
||||
.filter(Files::exists)
|
||||
List<String> shasum = Files.walk(getRelativeFile("dist"), 1)
|
||||
.filter(p -> p.toString().endsWith(".jar"))
|
||||
.map(path -> sha1(path) + " " + path.getFileName().toString())
|
||||
.collect(Collectors.toList());
|
||||
|
||||
|
|
Loading…
Reference in New Issue