diff --git a/app/assets/js/configmanager.js b/app/assets/js/configmanager.js index 24f317b..2aff420 100644 --- a/app/assets/js/configmanager.js +++ b/app/assets/js/configmanager.js @@ -7,7 +7,7 @@ const logger = LoggerUtil.getLogger('ConfigManager') const sysRoot = process.env.APPDATA || (process.platform == 'darwin' ? process.env.HOME + '/Library/Application Support' : process.env.HOME) -const dataPath = path.join(sysRoot, '.helioslauncher') +const dataPath = path.join(sysRoot, '.skirdalauncher') const launcherDir = require('@electron/remote').app.getPath('userData') diff --git a/app/assets/js/distromanager.js b/app/assets/js/distromanager.js index 805b060..e2b7278 100644 --- a/app/assets/js/distromanager.js +++ b/app/assets/js/distromanager.js @@ -6,8 +6,9 @@ const ConfigManager = require('./configmanager') // exports.REMOTE_DISTRO_URL = 'http://mc.westeroscraft.com/WesterosCraftLauncher/distribution.json' // exports.REMOTE_DISTRO_URL = 'https://skirda-minecraft-distribution.brzezinski.ru/distribution.json' // exports.REMOTE_DISTRO_URL = 'https://helios-files.geekcorner.eu.org/distribution.json' -exports.REMOTE_DISTRO_URL = 'http://192.168.88.10:8081/distribution/manifest' +// exports.REMOTE_DISTRO_URL = 'http://192.168.88.10:8081/distribution/manifest' // exports.REMOTE_DISTRO_URL = 'http://skirda-nebula.brzezinski.ru/distribution/manifest' +exports.REMOTE_DISTRO_URL = 'http://skirda-nebula.brzezinski.ru/distribution.json' // exports.REMOTE_DISTRO_URL = 'http://gregbrzezinski:8080/distribution/manifest' // exports.REMOTE_DISTRO_URL = 'http://localhost:8080/distribution/files/files/distribution.json' diff --git a/app/assets/js/processbuilder.js b/app/assets/js/processbuilder.js index 2f6c180..8038d9d 100644 --- a/app/assets/js/processbuilder.js +++ b/app/assets/js/processbuilder.js @@ -406,10 +406,15 @@ class ProcessBuilder { // Debug securejarhandler // args.push('-Dbsl.debug=true') - args.push('-Dminecraft.api.auth.host=http://localhost:8083/yggdrasil/auth') - args.push('-Dminecraft.api.account.host=http://localhost:8083/yggdrasil/account') - args.push('-Dminecraft.api.session.host=http://localhost:8083/yggdrasil') - args.push('-Dminecraft.api.services.host=http://localhost:8083/yggdrasil/services') + // args.push('-Dminecraft.api.auth.host=http://localhost:8083/yggdrasil/auth') + // args.push('-Dminecraft.api.account.host=http://localhost:8083/yggdrasil/account') + // args.push('-Dminecraft.api.session.host=http://localhost:8083/yggdrasil') + // args.push('-Dminecraft.api.services.host=http://localhost:8083/yggdrasil/services') + + args.push('-Dminecraft.api.auth.host=https://skirda-auth.brzezinski.ru/yggdrasil/auth') + args.push('-Dminecraft.api.account.host=https://skirda-auth.brzezinski.ru/yggdrasil/account') + args.push('-Dminecraft.api.session.host=https://skirda-auth.brzezinski.ru/yggdrasil') + args.push('-Dminecraft.api.services.host=https://skirda-auth.brzezinski.ru/yggdrasil/services') if(this.modManifest.arguments.jvm != null) { for(const argStr of this.modManifest.arguments.jvm) { diff --git a/app/assets/js/scripts/loginOptions.js b/app/assets/js/scripts/loginOptions.js index ef7a528..ab2a338 100644 --- a/app/assets/js/scripts/loginOptions.js +++ b/app/assets/js/scripts/loginOptions.js @@ -48,6 +48,7 @@ loginOptionOffline.onclick = (e) => { } loginOptionSkirdaDiscord.onclick = (e) => { + InitSkirdaDiscordLogin() switchView(getCurrentView(), VIEWS.loginSkirdaDiscord, 500, 500, () => { loginViewOnSuccess = loginOptionsViewOnLoginSuccess loginViewOnCancel = loginOptionsViewOnLoginCancel diff --git a/app/assets/js/scripts/loginSkirdaDiscord.js b/app/assets/js/scripts/loginSkirdaDiscord.js index 923145b..050eb43 100644 --- a/app/assets/js/scripts/loginSkirdaDiscord.js +++ b/app/assets/js/scripts/loginSkirdaDiscord.js @@ -1,8 +1,8 @@ // const http = require('http') // const fs = require('fs') // const {addSkirdaAccount} = require('configmanager') -const auth_api_url = 'http://192.168.88.10:8083' -// const auth_api_url = 'http://skirda-auth.brzezinski.ru' +// const auth_api_url = 'http://192.168.88.10:8083' +const auth_api_url = 'http://skirda-auth.brzezinski.ru' class SkirdaDiscordAuth{ /** @@ -107,7 +107,7 @@ class SkirdaDiscordAuth{ const skAuth = new SkirdaDiscordAuth() const loginSkirdaDiscordButton = document.getElementById('loginSkirdaDiscordInitAuth') -loginSkirdaDiscordButton.addEventListener('click', async () =>{ +async function InitSkirdaDiscordLogin (){ const res = await skAuth.Init() const redir = JSON.parse(res) //FIXME @@ -130,4 +130,4 @@ loginSkirdaDiscordButton.addEventListener('click', async () =>{ setTimeout(() => { switchView(VIEWS.loginSkirdaDiscord, VIEWS.landing, 500, 500) }, 1000) -}) +} diff --git a/app/landing.ejs b/app/landing.ejs index 3533147..3e8ef9b 100644 --- a/app/landing.ejs +++ b/app/landing.ejs @@ -64,7 +64,7 @@