Merge branch 'release/5.5.2'

This commit is contained in:
Gravita 2023-11-20 17:14:57 +07:00
commit 3d61635c6b
5 changed files with 8 additions and 10 deletions

View file

@ -26,7 +26,8 @@
archiveClassifier.set('clean')
manifest.attributes("Main-Class": mainClassName,
"Premain-Class": mainAgentName,
"Multi-Release": "true")
"Multi-Release": "true",
"Automatic-Module-Name": "GravitLauncher")
}
tasks.register('sourcesJar', Jar) {

View file

@ -6,7 +6,7 @@ public final class Version implements Comparable<Version> {
public static final int MAJOR = 5;
public static final int MINOR = 5;
public static final int PATCH = 1;
public static final int PATCH = 2;
public static final int BUILD = 1;
public static final Version.Type RELEASE = Type.STABLE;
public final int major;

View file

@ -39,7 +39,7 @@ public ClassLoaderControl init(List<Path> files, String nativePath, LaunchOption
} catch (MalformedURLException ex) {
throw new RuntimeException(ex);
}
}).toArray(URL[]::new), BasicLaunch.class.getClassLoader());
}).toArray(URL[]::new), ClassLoader.getPlatformClassLoader());
moduleClassLoader.nativePath = nativePath;
{
if(options.enableHacks) {
@ -163,14 +163,11 @@ private class ModuleClassLoader extends URLClassLoader {
private String nativePath;
private final List<String> packages = new ArrayList<>();
public ModuleClassLoader(URL[] urls) {
super(urls);
public ModuleClassLoader(URL[] urls, ClassLoader parent) {
super("LAUNCHER", urls, parent);
packages.add("pro.gravit.launcher.");
packages.add("pro.gravit.utils.");
}
public ModuleClassLoader(URL[] urls, ClassLoader parent) {
super(urls, parent);
}
@Override
protected Class<?> loadClass(String name, boolean resolve) throws ClassNotFoundException {

View file

@ -5,7 +5,7 @@
id 'org.openjfx.javafxplugin' version '0.0.10' apply false
}
group = 'pro.gravit.launcher'
version = '5.5.1'
version = '5.5.2'
apply from: 'props.gradle'

@ -1 +1 @@
Subproject commit 67462dafa9b8de8e3d7366f495c959b9c2c037d5
Subproject commit a70de3865daff53f44fb93cb6c80df99e3cdc0a1