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);
|
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());
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue