Add hmcl.self_integrity_check.disable option
This commit is contained in:
@@ -83,7 +83,7 @@ public final class UpdateChecker {
|
|||||||
}
|
}
|
||||||
|
|
||||||
private static RemoteVersion checkUpdate(UpdateChannel channel) throws IOException {
|
private static RemoteVersion checkUpdate(UpdateChannel channel) throws IOException {
|
||||||
if (!IntegrityChecker.isSelfVerified()) {
|
if (!IntegrityChecker.isSelfVerified() && !"true".equals(System.getProperty("hmcl.self_integrity_check.disable"))) {
|
||||||
throw new IOException("Self verification failed");
|
throw new IOException("Self verification failed");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -117,3 +117,9 @@ new MultiMCModpackInstallTask(dependency, modpackZipFile, MultiMCInstanceConfigu
|
|||||||
## HMCL
|
## HMCL
|
||||||
|
|
||||||
No plugin API.
|
No plugin API.
|
||||||
|
|
||||||
|
## JVM Options (for debugging)
|
||||||
|
|Parameter|Description|
|
||||||
|
|`-Dhmcl.self_integrity_check.disable=true`|Bypass the self integrity check when checking for update.|
|
||||||
|
|`-Dhmcl.version.override=<version>`|Override the version number.|
|
||||||
|
|`-Dhmcl.update_source.override=<url>`|Override the update source.|
|
||||||
|
|||||||
Reference in New Issue
Block a user