Compare commits
3 commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
d35927cf5b | ||
|
|
580a6bc7eb | ||
|
|
ff1958614c |
|
|
@ -1,7 +1,7 @@
|
||||||
cask "lce-emerald-launcher" do
|
cask "lce-emerald-launcher" do
|
||||||
version "1.6.0"
|
version "1.6.1"
|
||||||
sha256 intel: "777eef6ac4487a9988496552ae233cf7bd59cccbe3d1265691ef0ce698bc6ca0",
|
sha256 intel: "dd86c3f63088585f71ab94acd7c3e3ec0b535fc06ef71e7770741e08fe60782f",
|
||||||
arm: "307cdfa5fc164fc0c4a09d41d111637c017ec65e665714624ef69b5b1c28f134"
|
arm: "e2e6c50a5b0b847ed7c857ab8a4ae421fa8666096f3c9fa8bb216f21639dcfd2"
|
||||||
|
|
||||||
url "https://github.com/LCE-Hub/LCE-Emerald-Launcher/releases/download/v#{version}/LCE.Emerald.Launcher_#{version}_#{arch}.dmg"
|
url "https://github.com/LCE-Hub/LCE-Emerald-Launcher/releases/download/v#{version}/LCE.Emerald.Launcher_#{version}_#{arch}.dmg"
|
||||||
name "LCE Emerald Launcher"
|
name "LCE Emerald Launcher"
|
||||||
|
|
|
||||||
|
|
@ -2,8 +2,8 @@ class LceEmeraldLauncher < Formula
|
||||||
desc "Minecraft Legacy Console Edition Launcher"
|
desc "Minecraft Legacy Console Edition Launcher"
|
||||||
homepage "https://github.com/LCE-Hub/LCE-Emerald-Launcher-cask"
|
homepage "https://github.com/LCE-Hub/LCE-Emerald-Launcher-cask"
|
||||||
url "https://github.com/LCE-Hub/LCE-Emerald-Launcher/releases/download/v#{version}/LCE.Emerald.Launcher_#{version}_amd64.AppImage"
|
url "https://github.com/LCE-Hub/LCE-Emerald-Launcher/releases/download/v#{version}/LCE.Emerald.Launcher_#{version}_amd64.AppImage"
|
||||||
sha256 "9fe9f682d3461f46139c82ec59d768260ce44e907981f7a25a18f6e219da6a24"
|
sha256 "3f135df96014e6bf83ced13a89ba2ec4599532104e60aea97c45d1d246de62f2"
|
||||||
version "1.6.0"
|
version "1.6.1"
|
||||||
license "GPL-3.0-only"
|
license "GPL-3.0-only"
|
||||||
|
|
||||||
depends_on :linux
|
depends_on :linux
|
||||||
|
|
|
||||||
|
Before Width: | Height: | Size: 109 KiB After Width: | Height: | Size: 90 KiB |
|
Before Width: | Height: | Size: 71 KiB After Width: | Height: | Size: 70 KiB |
|
Before Width: | Height: | Size: 113 KiB After Width: | Height: | Size: 89 KiB |
|
Before Width: | Height: | Size: 78 KiB After Width: | Height: | Size: 59 KiB |
|
|
@ -45,7 +45,7 @@ export const BASE_EDITIONS = [
|
||||||
url: "https://git.revela.dev/itsRevela/LCE-Revelations/releases/download/Nightly/LCE-Revelations-Client-Win64.zip",
|
url: "https://git.revela.dev/itsRevela/LCE-Revelations/releases/download/Nightly/LCE-Revelations-Client-Win64.zip",
|
||||||
titleImage: "/images/minecraft_title_revelations.png",
|
titleImage: "/images/minecraft_title_revelations.png",
|
||||||
supportsSlimSkins: false,
|
supportsSlimSkins: false,
|
||||||
panorama: "vanilla_tu24",
|
panorama: "vanilla_tu19",
|
||||||
logo: "/images/revelations.png",
|
logo: "/images/revelations.png",
|
||||||
},
|
},
|
||||||
/*{
|
/*{
|
||||||
|
|
|
||||||
|
|
@ -36,9 +36,6 @@ export class LceOnlineService {
|
||||||
private _listeners: Array<() => void> = [];
|
private _listeners: Array<() => void> = [];
|
||||||
constructor() {
|
constructor() {
|
||||||
this.loadSession();
|
this.loadSession();
|
||||||
if (this._session) {
|
|
||||||
this.refreshToken();
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
onSessionChange(listener: () => void): () => void {
|
onSessionChange(listener: () => void): () => void {
|
||||||
|
|
@ -212,28 +209,6 @@ export class LceOnlineService {
|
||||||
return data;
|
return data;
|
||||||
}
|
}
|
||||||
|
|
||||||
async refreshToken(): Promise<boolean> {
|
|
||||||
if (!this._session) return false;
|
|
||||||
|
|
||||||
try {
|
|
||||||
const res = await this.request<string>("POST", "/refreshtoken", null, AUTH_BASE_URL);
|
|
||||||
if (typeof res === "string" && res.startsWith("-")) {
|
|
||||||
const data = JSON.parse(res);
|
|
||||||
this._session.accessToken = data.token;
|
|
||||||
this._session.account = { username: data.username, displayName: data.displayName };
|
|
||||||
this.saveSession();
|
|
||||||
this._notify();
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
this.logoutLocal();
|
|
||||||
return false;
|
|
||||||
} catch (e) {
|
|
||||||
console.warn("Failed to refresh token", e);
|
|
||||||
this.logoutLocal()
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
async getSocialLists() {
|
async getSocialLists() {
|
||||||
const res = await this.request<SocialList>("GET", "/getSocialLists", null);
|
const res = await this.request<SocialList>("GET", "/getSocialLists", null);
|
||||||
if (typeof res === "string") throw new Error(res);
|
if (typeof res === "string") throw new Error(res);
|
||||||
|
|
|
||||||