Initial commit

This commit is contained in:
Cyanoure
2025-07-13 18:09:48 +02:00
commit 06679379d7
2145 changed files with 364057 additions and 0 deletions

24
index.js Executable file
View File

@@ -0,0 +1,24 @@
const fs = require("fs");
const http = require("http");
const https = require("https");
const { validateLibraryRules } = require("./core/Utils");
const { Instance, ServersDat, ServersDatServer } = require("./core/LauncherCore");
const { LauncherApp } = require("./src/LauncherApp");
(async () => {
const core = new Instance();
await core.loadVersionManifest();
//console.log(await core.getLatestRelease());
//await core.startVersion("1.20.1");
//await core.startLatestRelease();
/*const sd = await (new ServersDat(`${__dirname}/minecraft/servers.dat`)).load();
sd.updateOrAddToTop(new ServersDatServer("Chronika Elosztó", "chronika.hu"));
await sd.save();*/
core.serverListUrl = "https://files.chronika.hu/serverlist.json";
core.generateOfflineUUID();
core.setWorkDirAtDefaultLocation(".chronika-plasma");
//await core.startVersion("1.20.1");
})/*()*/;
new LauncherApp();