update the scripting engine and fix cached file extension

This commit is contained in:
Julian Krings 2025-04-23 21:24:14 +02:00
parent c597c55c2c
commit 0a2f35dd8d
No known key found for this signature in database
GPG Key ID: 208C6E08C3B718D2

View File

@ -46,10 +46,10 @@ public class ExecutionEnvironment {
@SneakyThrows
private static URLClassLoader buildLoader() {
String version = "ac94c94427";
String version = "46d271c6ce";
String url = BASE_URL.formatted(version, version);
String hash = IO.hash("Iris-Scripts.jar@" + version);
var file = Iris.instance.getDataFile("cache", hash.substring(0, 2), hash.substring(3, 5), hash);
var file = Iris.instance.getDataFile("cache", hash.substring(0, 2), hash.substring(3, 5), hash + ".jar");
var libsDir = new File(file.getParentFile(), "libs");
KList<String> libs = null;