mirror of
https://github.com/GravitLauncher/Launcher
synced 2024-12-22 16:41:46 +03:00
[FIX] Альтернативное зеркало и фиксы профилей
This commit is contained in:
parent
b92e9a1d29
commit
cd890a73ee
18 changed files with 144 additions and 60 deletions
|
@ -63,6 +63,14 @@ public void invoke(String... args) throws IOException, CommandException {
|
|||
client.setTitle(dirName);
|
||||
client.setDir(dirName);
|
||||
client.setUUID(UUID.randomUUID());
|
||||
if(client.getServers() != null)
|
||||
{
|
||||
ClientProfile.ServerProfile serverProfile = client.getDefaultServerProfile();
|
||||
if(serverProfile != null)
|
||||
{
|
||||
serverProfile.name = dirName;
|
||||
}
|
||||
}
|
||||
try (BufferedWriter writer = IOHelper.newWriter(IOHelper.resolveIncremental(server.profilesDir,
|
||||
dirName, "json"))) {
|
||||
Launcher.gsonManager.configGson.toJson(client, writer);
|
||||
|
|
|
@ -48,7 +48,7 @@ public final class LaunchServerConfig {
|
|||
|
||||
public static LaunchServerConfig getDefault(LaunchServer.LaunchServerEnv env) {
|
||||
LaunchServerConfig newConfig = new LaunchServerConfig();
|
||||
newConfig.mirrors = new String[]{"https://mirror.gravit.pro/"};
|
||||
newConfig.mirrors = new String[]{"https://mirror.gravit.pro/", "https://gravit-launcher-mirror.storage.googleapis.com/"};
|
||||
newConfig.launch4j = new LaunchServerConfig.ExeConf();
|
||||
newConfig.launch4j.enabled = true;
|
||||
newConfig.launch4j.copyright = "© GravitLauncher Team";
|
||||
|
|
|
@ -6,14 +6,16 @@
|
|||
"info": "Информация о сервере",
|
||||
"sortIndex": 0,
|
||||
"title": "xxxxxxxx",
|
||||
"serverAddress": "localhost",
|
||||
"serverPort": 25565,
|
||||
"update": ["servers.dat"],
|
||||
"updateExclusions": [
|
||||
"mods/OpenSecurity",
|
||||
"mods/VoxelMods",
|
||||
"mods/railcraft"
|
||||
"servers": [
|
||||
{
|
||||
"name": "----",
|
||||
"serverAddress": "localhost",
|
||||
"serverPort": 25565,
|
||||
"isDefault": true
|
||||
}
|
||||
],
|
||||
"update": ["servers.dat"],
|
||||
"updateExclusions": [],
|
||||
"updateShared": [],
|
||||
"updateVerify": [
|
||||
"libraries", "natives", "mods",
|
||||
|
|
|
@ -6,14 +6,16 @@
|
|||
"info": "Информация о сервере",
|
||||
"sortIndex": 0,
|
||||
"title": "xxxxxxxx",
|
||||
"serverAddress": "localhost",
|
||||
"serverPort": 25565,
|
||||
"update": ["servers.dat"],
|
||||
"updateExclusions": [
|
||||
"mods/OpenSecurity",
|
||||
"mods/VoxelMods",
|
||||
"mods/railcraft"
|
||||
"servers": [
|
||||
{
|
||||
"name": "----",
|
||||
"serverAddress": "localhost",
|
||||
"serverPort": 25565,
|
||||
"isDefault": true
|
||||
}
|
||||
],
|
||||
"update": ["servers.dat"],
|
||||
"updateExclusions": [],
|
||||
"updateShared": [],
|
||||
"updateVerify": [
|
||||
"libraries", "natives", "mods",
|
||||
|
|
|
@ -6,14 +6,16 @@
|
|||
"info": "Информация о сервере",
|
||||
"sortIndex": 0,
|
||||
"title": "xxxxxxxx",
|
||||
"serverAddress": "localhost",
|
||||
"serverPort": 25565,
|
||||
"update": ["servers.dat"],
|
||||
"updateExclusions": [
|
||||
"mods/OpenSecurity",
|
||||
"mods/VoxelMods",
|
||||
"mods/railcraft"
|
||||
"servers": [
|
||||
{
|
||||
"name": "----",
|
||||
"serverAddress": "localhost",
|
||||
"serverPort": 25565,
|
||||
"isDefault": true
|
||||
}
|
||||
],
|
||||
"update": ["servers.dat"],
|
||||
"updateExclusions": [],
|
||||
"updateShared": [],
|
||||
"updateVerify": [
|
||||
"libraries", "natives", "mods",
|
||||
|
@ -35,8 +37,8 @@
|
|||
],
|
||||
"classPath": ["forge.jar", "liteloader.jar", "minecraft.jar", "libraries"],
|
||||
"clientArgs": [
|
||||
"--tweakClass", "net.minecraftforge.fml.common.launcher.FMLTweaker",
|
||||
"--tweakClass", "com.mumfrey.liteloader.launch.LiteLoaderTweaker"
|
||||
"--tweakClass", "com.mumfrey.liteloader.launch.LiteLoaderTweaker",
|
||||
"--tweakClass", "net.minecraftforge.fml.common.launcher.FMLTweaker"
|
||||
],
|
||||
"optionalJVMArgs": [],
|
||||
"optionalClientArgs": [],
|
||||
|
|
|
@ -6,14 +6,16 @@
|
|||
"info": "Информация о сервере",
|
||||
"sortIndex": 0,
|
||||
"title": "xxxxxxxx",
|
||||
"serverAddress": "localhost",
|
||||
"serverPort": 25565,
|
||||
"update": ["servers.dat"],
|
||||
"updateExclusions": [
|
||||
"mods/OpenSecurity",
|
||||
"mods/VoxelMods",
|
||||
"mods/railcraft"
|
||||
"servers": [
|
||||
{
|
||||
"name": "----",
|
||||
"serverAddress": "localhost",
|
||||
"serverPort": 25565,
|
||||
"isDefault": true
|
||||
}
|
||||
],
|
||||
"update": ["servers.dat"],
|
||||
"updateExclusions": [],
|
||||
"updateShared": [],
|
||||
"updateVerify": [
|
||||
"libraries", "natives", "mods",
|
||||
|
|
|
@ -6,14 +6,16 @@
|
|||
"info": "Информация о сервере",
|
||||
"sortIndex": 0,
|
||||
"title": "xxxxxxxx",
|
||||
"serverAddress": "localhost",
|
||||
"serverPort": 25565,
|
||||
"update": ["servers.dat"],
|
||||
"updateExclusions": [
|
||||
"mods/OpenSecurity",
|
||||
"mods/VoxelMods",
|
||||
"mods/railcraft"
|
||||
"servers": [
|
||||
{
|
||||
"name": "----",
|
||||
"serverAddress": "localhost",
|
||||
"serverPort": 25565,
|
||||
"isDefault": true
|
||||
}
|
||||
],
|
||||
"update": ["servers.dat"],
|
||||
"updateExclusions": [],
|
||||
"updateShared": [],
|
||||
"updateVerify": [
|
||||
"libraries", "natives", "mods",
|
||||
|
|
|
@ -6,8 +6,14 @@
|
|||
"info": "Информация о сервере",
|
||||
"sortIndex": 0,
|
||||
"title": "xxxxxxxx",
|
||||
"serverAddress": "localhost",
|
||||
"serverPort": 25565,
|
||||
"servers": [
|
||||
{
|
||||
"name": "----",
|
||||
"serverAddress": "localhost",
|
||||
"serverPort": 25565,
|
||||
"isDefault": true
|
||||
}
|
||||
],
|
||||
"update": [
|
||||
"servers.dat"
|
||||
],
|
||||
|
|
|
@ -6,8 +6,14 @@
|
|||
"info": "Информация о сервере",
|
||||
"sortIndex": 0,
|
||||
"title": "xxxxxxxx",
|
||||
"serverAddress": "localhost",
|
||||
"serverPort": 25565,
|
||||
"servers": [
|
||||
{
|
||||
"name": "----",
|
||||
"serverAddress": "localhost",
|
||||
"serverPort": 25565,
|
||||
"isDefault": true
|
||||
}
|
||||
],
|
||||
"update": [
|
||||
"servers.dat"
|
||||
],
|
||||
|
|
|
@ -6,8 +6,14 @@
|
|||
"info": "Информация о сервере",
|
||||
"sortIndex": 0,
|
||||
"title": "xxxxxxxx",
|
||||
"serverAddress": "localhost",
|
||||
"serverPort": 25565,
|
||||
"servers": [
|
||||
{
|
||||
"name": "----",
|
||||
"serverAddress": "localhost",
|
||||
"serverPort": 25565,
|
||||
"isDefault": true
|
||||
}
|
||||
],
|
||||
"update": [
|
||||
"servers.dat"
|
||||
],
|
||||
|
|
|
@ -6,8 +6,14 @@
|
|||
"info": "Информация о сервере",
|
||||
"sortIndex": 0,
|
||||
"title": "xxxxxxxx",
|
||||
"serverAddress": "localhost",
|
||||
"serverPort": 25565,
|
||||
"servers": [
|
||||
{
|
||||
"name": "----",
|
||||
"serverAddress": "localhost",
|
||||
"serverPort": 25565,
|
||||
"isDefault": true
|
||||
}
|
||||
],
|
||||
"update": [
|
||||
"servers.dat"
|
||||
],
|
||||
|
|
|
@ -6,8 +6,14 @@
|
|||
"info": "Информация о сервере",
|
||||
"sortIndex": 0,
|
||||
"title": "Test1.4.7",
|
||||
"serverAddress": "localhost",
|
||||
"serverPort": 25565,
|
||||
"servers": [
|
||||
{
|
||||
"name": "----",
|
||||
"serverAddress": "localhost",
|
||||
"serverPort": 25565,
|
||||
"isDefault": true
|
||||
}
|
||||
],
|
||||
"update": ["servers.dat"],
|
||||
"updateExclusions": [],
|
||||
"updateShared": [],
|
||||
|
|
|
@ -6,8 +6,14 @@
|
|||
"info": "Информация о сервере",
|
||||
"sortIndex": 0,
|
||||
"title": "Test1.5.2",
|
||||
"serverAddress": "localhost",
|
||||
"serverPort": 25565,
|
||||
"servers": [
|
||||
{
|
||||
"name": "----",
|
||||
"serverAddress": "localhost",
|
||||
"serverPort": 25565,
|
||||
"isDefault": true
|
||||
}
|
||||
],
|
||||
"update": ["servers.dat"],
|
||||
"updateExclusions": [],
|
||||
"updateShared": [],
|
||||
|
|
|
@ -6,8 +6,14 @@
|
|||
"info": "Информация о сервере",
|
||||
"sortIndex": 0,
|
||||
"title": "Test1.6.4",
|
||||
"serverAddress": "localhost",
|
||||
"serverPort": 25565,
|
||||
"servers": [
|
||||
{
|
||||
"name": "----",
|
||||
"serverAddress": "localhost",
|
||||
"serverPort": 25565,
|
||||
"isDefault": true
|
||||
}
|
||||
],
|
||||
"update": ["servers.dat"],
|
||||
"updateExclusions": [],
|
||||
"updateShared": [],
|
||||
|
|
|
@ -6,8 +6,14 @@
|
|||
"info": "Информация о сервере",
|
||||
"sortIndex": 0,
|
||||
"title": "Test1.7.10",
|
||||
"serverAddress": "localhost",
|
||||
"serverPort": 25565,
|
||||
"servers": [
|
||||
{
|
||||
"name": "----",
|
||||
"serverAddress": "localhost",
|
||||
"serverPort": 25565,
|
||||
"isDefault": true
|
||||
}
|
||||
],
|
||||
"update": ["servers.dat"],
|
||||
"updateExclusions": [],
|
||||
"updateShared": [],
|
||||
|
|
|
@ -6,8 +6,14 @@
|
|||
"info": "Информация о сервере",
|
||||
"sortIndex": 0,
|
||||
"title": "Test1.7.2",
|
||||
"serverAddress": "localhost",
|
||||
"serverPort": 25565,
|
||||
"servers": [
|
||||
{
|
||||
"name": "----",
|
||||
"serverAddress": "localhost",
|
||||
"serverPort": 25565,
|
||||
"isDefault": true
|
||||
}
|
||||
],
|
||||
"update": ["servers.dat"],
|
||||
"updateExclusions": [],
|
||||
"updateShared": [],
|
||||
|
|
|
@ -6,8 +6,14 @@
|
|||
"info": "Информация о сервере",
|
||||
"sortIndex": 0,
|
||||
"title": "Test1.8.9",
|
||||
"serverAddress": "localhost",
|
||||
"serverPort": 25565,
|
||||
"servers": [
|
||||
{
|
||||
"name": "----",
|
||||
"serverAddress": "localhost",
|
||||
"serverPort": 25565,
|
||||
"isDefault": true
|
||||
}
|
||||
],
|
||||
"update": ["servers.dat"],
|
||||
"updateExclusions": [],
|
||||
"updateShared": [],
|
||||
|
|
|
@ -6,8 +6,14 @@
|
|||
"info": "Информация о сервере",
|
||||
"sortIndex": 0,
|
||||
"title": "Test1.9.4",
|
||||
"serverAddress": "localhost",
|
||||
"serverPort": 25565,
|
||||
"servers": [
|
||||
{
|
||||
"name": "----",
|
||||
"serverAddress": "localhost",
|
||||
"serverPort": 25565,
|
||||
"isDefault": true
|
||||
}
|
||||
],
|
||||
"update": ["servers.dat"],
|
||||
"updateExclusions": [],
|
||||
"updateShared": [],
|
||||
|
|
Loading…
Reference in a new issue