From bea789893927a847ed6b77595daa6f992f711229 Mon Sep 17 00:00:00 2001 From: Gravita <12893402+gravit0@users.noreply.github.com> Date: Thu, 8 Jun 2023 22:39:08 +0700 Subject: [PATCH] [FEATURE] Change hash type to sha1 --- LaunchServer/src/main/resources/experimental-build.json | 2 +- .../src/main/java/pro/gravit/launcher/hasher/HashedFile.java | 2 +- LauncherCore/src/main/java/pro/gravit/utils/Version.java | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/LaunchServer/src/main/resources/experimental-build.json b/LaunchServer/src/main/resources/experimental-build.json index ab148d00..8eb8f98e 100644 --- a/LaunchServer/src/main/resources/experimental-build.json +++ b/LaunchServer/src/main/resources/experimental-build.json @@ -1,4 +1,4 @@ { - "features": [], + "features": ["sha1-hash"], "info": [] } \ No newline at end of file diff --git a/LauncherCore/src/main/java/pro/gravit/launcher/hasher/HashedFile.java b/LauncherCore/src/main/java/pro/gravit/launcher/hasher/HashedFile.java index 3f84ceb1..cc36bf50 100644 --- a/LauncherCore/src/main/java/pro/gravit/launcher/hasher/HashedFile.java +++ b/LauncherCore/src/main/java/pro/gravit/launcher/hasher/HashedFile.java @@ -13,7 +13,7 @@ import java.util.Arrays; public final class HashedFile extends HashedEntry { - public static final DigestAlgorithm DIGEST_ALGO = DigestAlgorithm.MD5; + public static final DigestAlgorithm DIGEST_ALGO = DigestAlgorithm.SHA1; // Instance @LauncherNetworkAPI diff --git a/LauncherCore/src/main/java/pro/gravit/utils/Version.java b/LauncherCore/src/main/java/pro/gravit/utils/Version.java index 7c694318..d28d12d1 100644 --- a/LauncherCore/src/main/java/pro/gravit/utils/Version.java +++ b/LauncherCore/src/main/java/pro/gravit/utils/Version.java @@ -8,7 +8,7 @@ public final class Version implements Comparable { public static final int MINOR = 4; public static final int PATCH = 2; public static final int BUILD = 1; - public static final Version.Type RELEASE = Type.STABLE; + public static final Version.Type RELEASE = Type.EXPERIMENTAL; public final int major; public final int minor; public final int patch;