mirror of
https://github.com/GravitLauncher/Launcher
synced 2024-12-23 09:01:08 +03:00
[FIX] Навёл порядок в скриптах gradle. + [FIX] Удалил лишний мусор (остатки старого формата конфигов). + [ANY] Обновлены модули.
[FEATURE] DiscordRPC модуль. + [FIX] Переписал скрипты gradle.
This commit is contained in:
parent
77101c21ff
commit
eb765608bd
10 changed files with 7 additions and 91 deletions
|
@ -1,63 +0,0 @@
|
|||
{
|
||||
"port": 7240,
|
||||
"address": "xx.xx",
|
||||
"bindAddress": "0.0.0.0",
|
||||
"projectName": "XXX",
|
||||
"mirrors": [
|
||||
"http://mirror.gravitlauncher.ml/"
|
||||
],
|
||||
"binaryName": "Launcher",
|
||||
"env": "STD",
|
||||
"authProvider": [
|
||||
{
|
||||
"message": "Настройте authProvider",
|
||||
"type": "reject"
|
||||
}
|
||||
],
|
||||
"authHandler": {
|
||||
"type": "memory"
|
||||
},
|
||||
"permissionsHandler": {
|
||||
"filename": "permissions.json",
|
||||
"type": "json"
|
||||
},
|
||||
"textureProvider": {
|
||||
"skinURL": "http://example.com/skins/%username%.png",
|
||||
"cloakURL": "http://example.com/cloaks/%username%.png",
|
||||
"type": "request"
|
||||
},
|
||||
"hwidHandler": {
|
||||
"type": "accept"
|
||||
},
|
||||
"threadCount": 2,
|
||||
"threadCoreCount": 0,
|
||||
"launch4j": {
|
||||
"enabled": false,
|
||||
"productName": "GravitLauncher",
|
||||
"productVer": "4.2.0.0",
|
||||
"fileDesc": "GravitLauncher 4.2.0",
|
||||
"fileVer": "4.2.0.0",
|
||||
"internalName": "Launcher",
|
||||
"copyright": "© GravitLauncher Team",
|
||||
"trademarks": "This product is licensed under GPLv3",
|
||||
"txtFileVersion": "%s, build %d",
|
||||
"txtProductVersion": "%s, build %d"
|
||||
},
|
||||
"buildPostTransform": {
|
||||
"enabled": false
|
||||
},
|
||||
"compress": false,
|
||||
"authRateLimit": 0,
|
||||
"authRateLimitMilis": 0,
|
||||
"authRejectString": "Превышен лимит авторизаций",
|
||||
"whitelistRejectString": "Вас нет в белом списке",
|
||||
"genMappings": true,
|
||||
"isUsingWrapper": false,
|
||||
"isDownloadJava": false,
|
||||
"isWarningMissArchJava": true,
|
||||
"enabledProGuard": true,
|
||||
"updatesNotify": true,
|
||||
"stripLineNumbers": true,
|
||||
"deleteTempFiles": true,
|
||||
"startScript": ".\\start.sh"
|
||||
}
|
|
@ -306,6 +306,7 @@ private static void launch(ClientProfile profile, Params params) throws Throwabl
|
|||
private static Process process = null;
|
||||
private static boolean clientStarted = false;
|
||||
private static Thread writeParamsThread;
|
||||
public static PlayerProfile playerProfile;
|
||||
|
||||
@LauncherAPI
|
||||
public static Process launch(
|
||||
|
@ -461,6 +462,7 @@ public static void main(String... args) throws Throwable {
|
|||
return;
|
||||
}
|
||||
Launcher.profile = profile;
|
||||
playerProfile = params.pp;
|
||||
Request.setSession(params.session);
|
||||
checkJVMBitsAndVersion();
|
||||
Launcher.modulesManager.initModules();
|
||||
|
|
|
@ -7,6 +7,7 @@
|
|||
import pro.gravit.launcher.managers.SimpleModuleManager;
|
||||
|
||||
public class ClientModuleManager extends SimpleModuleManager {
|
||||
|
||||
public ClientModuleManager(LauncherEngine engine) {
|
||||
context = new ClientModuleContext(engine);
|
||||
modules = new ArrayList<>();
|
||||
|
|
|
@ -62,7 +62,7 @@
|
|||
|
||||
public class JSRuntimeProvider implements RuntimeProvider {
|
||||
|
||||
private final ScriptEngine engine = CommonHelper.newScriptEngine();
|
||||
public final ScriptEngine engine = CommonHelper.newScriptEngine();
|
||||
private boolean isPreLoaded = false;
|
||||
|
||||
@LauncherAPI
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
apply from: '../scripts/test_support.gradle'
|
||||
apply from: 'test_support.gradle'
|
||||
|
||||
dependencies {
|
||||
compile project(':LaunchServer')
|
||||
|
|
2
modules
2
modules
|
@ -1 +1 @@
|
|||
Subproject commit c5986c83c7d9a2c988a4846efc0ec99c4b8d0934
|
||||
Subproject commit 51bae9ce1d287ce453c4f7bfb5bb7bf463ec6af8
|
|
@ -1,8 +0,0 @@
|
|||
dependencies {
|
||||
compileOnly project(':Launcher')
|
||||
}
|
||||
|
||||
jar {
|
||||
from { configurations.runtime.collect { it.isDirectory() ? it : zipTree(it) } }
|
||||
}
|
||||
|
|
@ -1,8 +0,0 @@
|
|||
dependencies {
|
||||
compileOnly project(':LaunchServer')
|
||||
}
|
||||
|
||||
jar {
|
||||
from { configurations.runtime.collect { it.isDirectory() ? it : zipTree(it) } }
|
||||
}
|
||||
|
|
@ -1,8 +0,0 @@
|
|||
dependencies {
|
||||
compileOnly project(':ServerWrapper')
|
||||
}
|
||||
|
||||
jar {
|
||||
from { configurations.runtime.collect { it.isDirectory() ? it : zipTree(it) } }
|
||||
}
|
||||
|
Loading…
Reference in a new issue