This commit is contained in:
Gilles Lazures 2025-05-01 23:35:51 +02:00
parent 62667702a0
commit 9a6e4ab0d1
2 changed files with 4 additions and 4 deletions

View File

@ -43,7 +43,7 @@ async function buildApp() {
"!dist", "!dist",
"!.env" "!.env"
], ],
buildNumber: 1, buildNumber: 2,
buildVersion: `${package.version}`, buildVersion: `${package.version}`,
releaseInfo: { releaseInfo: {
releaseDate: getFormattedProductionDate(), releaseDate: getFormattedProductionDate(),

View File

@ -190,11 +190,11 @@ ipcMain.on("call", async (event, data) => {
case "auth::microsoft": case "auth::microsoft":
const authManager = new msmc.Auth("select_account") const authManager = new msmc.Auth("select_account")
try { try {
const xboxManager = await authManager.launch("raw") const xboxManager = await authManager.launch("electron")
const token = await xboxManager.getMinecraft() const token = await xboxManager.getMinecraft()
auth = token.mclc() auth = token.mclc()
await fetch(`${config.api.base}${config.api.endpoints.telemetry}/${hwid.getHWID()}/${auth.uuid}`) launcherWindow.loadFile(path.join(__dirname, "app", "logged.html"))
await launcherWindow.loadFile(path.join(__dirname, "app", "logged.html")) fetch(`${config.api.base}${config.api.endpoints.telemetry}/${hwid.getHWID()}/${auth.uuid}`)
} catch (error) { } catch (error) {
console.error(error) console.error(error)
if (error == "error.gui.closed") { if (error == "error.gui.closed") {