From 11cce42f40bfe5bd4eacd605839affffb8e0de21 Mon Sep 17 00:00:00 2001 From: peunsu <44690893+peunsu@users.noreply.github.com> Date: Mon, 12 Feb 2024 05:12:39 +0000 Subject: [PATCH 1/2] Change the download url of distribution.json. Modify css style and image extension. --- README.md | 4 ++-- app/assets/css/launcher.css | 5 +++-- app/assets/js/distromanager.js | 2 +- app/assets/js/scripts/uibinder.js | 2 +- 4 files changed, 7 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index 00ac0789..fe8d22ec 100644 --- a/README.md +++ b/README.md @@ -57,8 +57,8 @@ If you download from the [Releases](https://github.com/peunsu/MRSLauncher/releas | Platform | File | | -------- | ---- | | Windows x64 | `MRS-Launcher-setup-VERSION.exe` | -| macOS x64 | `MRS-Launcher-setup-VERSION-x64.dmg` | -| macOS arm64 | `MRS-Launcher-setup-VERSION-arm64.dmg` | +| ~~macOS x64~~ | ~~`MRS-Launcher-setup-VERSION-x64.dmg`~~ | +| ~~macOS arm64~~ | ~~`MRS-Launcher-setup-VERSION-arm64.dmg`~~ | | Linux x64 | `MRS-Launcher-setup-VERSION.AppImage` | ## Console diff --git a/app/assets/css/launcher.css b/app/assets/css/launcher.css index 1c4856cb..585f9701 100644 --- a/app/assets/css/launcher.css +++ b/app/assets/css/launcher.css @@ -2680,6 +2680,7 @@ input:checked + .toggleSwitchSlider:before { #newsArticleContentScrollable img, #newsArticleContentScrollable iframe { max-width: 95%; + height: auto; display: block; margin: 0 auto; } @@ -2858,9 +2859,9 @@ input:checked + .toggleSwitchSlider:before { height: 70px; width: auto; position: relative; - border: 2px solid white; + /* border: 2px solid white; */ box-sizing: border-box; - border-radius: 50%; + /* border-radius: 50%; */ } /* Logo container styles. */ diff --git a/app/assets/js/distromanager.js b/app/assets/js/distromanager.js index 92d4f813..ea66fb3b 100644 --- a/app/assets/js/distromanager.js +++ b/app/assets/js/distromanager.js @@ -4,7 +4,7 @@ const ConfigManager = require('./configmanager') // Old WesterosCraft url. // exports.REMOTE_DISTRO_URL = 'http://mc.westeroscraft.com/WesterosCraftLauncher/distribution.json' -exports.REMOTE_DISTRO_URL = 'https://launcher.mysticred.space/distribution.json' +exports.REMOTE_DISTRO_URL = 'https://cdn.mysticred.space/launcher/distribution.json' const api = new DistributionAPI( ConfigManager.getLauncherDirectory(), diff --git a/app/assets/js/scripts/uibinder.js b/app/assets/js/scripts/uibinder.js index 5fe79df5..59650eaf 100644 --- a/app/assets/js/scripts/uibinder.js +++ b/app/assets/js/scripts/uibinder.js @@ -69,7 +69,7 @@ async function showMainUI(data){ refreshServerStatus() setTimeout(() => { document.getElementById('frameBar').style.backgroundColor = 'rgba(0, 0, 0, 0.5)' - document.body.style.backgroundImage = `url('assets/images/backgrounds/${document.body.getAttribute('bkid')}.jpg')` + document.body.style.backgroundImage = `url('assets/images/backgrounds/${document.body.getAttribute('bkid')}.png')` $('#main').show() const isLoggedIn = Object.keys(ConfigManager.getAuthAccounts()).length > 0 From 65fb2201d52bb4713ee7bf7618eef23059cc17c5 Mon Sep 17 00:00:00 2001 From: peunsu <44690893+peunsu@users.noreply.github.com> Date: Mon, 12 Feb 2024 06:25:32 +0000 Subject: [PATCH 2/2] Update to v3.0.1 --- package-lock.json | 2 +- package.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/package-lock.json b/package-lock.json index b283b21d..e24c88d9 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,6 +1,6 @@ { "name": "mrslauncher", - "version": "3.0.0", + "version": "3.0.1", "lockfileVersion": 3, "requires": true, "packages": { diff --git a/package.json b/package.json index ec58d7e3..31470a6d 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "mrslauncher", - "version": "3.0.0", + "version": "3.0.1", "productName": "MRS Launcher", "description": "Modded Minecraft Launcher", "author": "Daniel Scalzi (https://github.com/dscalzi/), peunsu (https://github.com/peunsu)",