Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion .eslintignore

This file was deleted.

66 changes: 0 additions & 66 deletions .eslintrc.json

This file was deleted.

8 changes: 4 additions & 4 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,15 +15,15 @@ jobs:

steps:
- name: Check out Git repository
uses: actions/checkout@v3
uses: actions/checkout@v6

- name: Set up Node
uses: actions/setup-node@v3
uses: actions/setup-node@v6
with:
node-version: 20
node-version: 22

- name: Set up Python
uses: actions/setup-python@v4
uses: actions/setup-python@v6
with:
python-version: 3.x

Expand Down
2 changes: 1 addition & 1 deletion .nvmrc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
20
22
2 changes: 1 addition & 1 deletion LICENSE.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
MIT License

Copyright (c) 2017-2024 Daniel D. Scalzi
Copyright (c) 2017-2026 Daniel D. Scalzi

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ This section details the setup of a basic developmentment environment.

**System Requirements**

* [Node.js][nodejs] v20
* [Node.js][nodejs] v22

---

Expand Down
12 changes: 6 additions & 6 deletions app/assets/css/launcher.css
Original file line number Diff line number Diff line change
Expand Up @@ -3136,13 +3136,13 @@ input:checked + .toggleSwitchSlider:before {
transition-delay:0s;
}

/* Twitter icon colors. */
#twitterSVG:hover,
#twitterURL:focus #twitterSVG {
fill: #1da1f2;
/* X icon colors. */
#xSVG:hover,
#xURL:focus #xSVG {
fill: #000000;
}
#twitterSVG:active {
fill: #1b8dd4;
#xSVG:active {
fill: #090909;
}

/* Instagram icon colors. */
Expand Down
13 changes: 0 additions & 13 deletions app/assets/images/icons/twitter.svg

This file was deleted.

4 changes: 4 additions & 0 deletions app/assets/images/icons/x.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 2 additions & 2 deletions app/assets/js/authmanager.js
Original file line number Diff line number Diff line change
Expand Up @@ -382,7 +382,7 @@ async function validateSelectedMicrosoftAccount(){
)
ConfigManager.save()
return true
} catch(err) {
} catch(_err) {
return false
}
} else {
Expand All @@ -401,7 +401,7 @@ async function validateSelectedMicrosoftAccount(){
ConfigManager.save()
return true
}
catch(err) {
catch(_err) {
return false
}
}
Expand Down
2 changes: 1 addition & 1 deletion app/assets/js/configmanager.js
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ exports.getAbsoluteMinRAM = function(ram){
}
}

exports.getAbsoluteMaxRAM = function(ram){
exports.getAbsoluteMaxRAM = function(_ram){
const mem = os.totalmem()
const gT16 = mem-(16*1073741824)
return Math.floor((mem-(gT16 > 0 ? (Number.parseInt(gT16/8) + (16*1073741824)/4) : mem/4))/1073741824)
Expand Down
10 changes: 7 additions & 3 deletions app/assets/js/processbuilder.js
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,11 @@ class ProcessBuilder {
args = args.concat(this.constructModList(modObj.fMods))
}

logger.info('Launch Arguments:', args)
// Hide access token
const loggableArgs = [...args]
loggableArgs[loggableArgs.findIndex(x => x === this.authUser.accessToken)] = '**********'

logger.info('Launch Arguments:', loggableArgs)

const child = child_process.spawn(ConfigManager.getJavaExecutable(this.server.rawServer.id), args, {
cwd: this.gameDir,
Expand All @@ -92,7 +96,7 @@ class ProcessBuilder {
child.stderr.on('data', (data) => {
data.trim().split('\n').forEach(x => console.log(`\x1b[31m[Minecraft]\x1b[0m ${x}`))
})
child.on('close', (code, signal) => {
child.on('close', (code) => {
logger.info('Exited with code', code)
fs.remove(tempNativePath, (err) => {
if(err){
Expand Down Expand Up @@ -230,7 +234,7 @@ class ProcessBuilder {
return true
}
}
} catch (err) {
} catch (_err) {
// We know old forge versions follow this format.
// Error must be caused by newer version.
}
Expand Down
1 change: 0 additions & 1 deletion app/assets/js/scripts/uicore.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ process.traceProcessWarnings = true
process.traceDeprecation = true

// Disable eval function.
// eslint-disable-next-line
window.eval = global.eval = function () {
throw new Error('Sorry, this app does not support window.eval().')
}
Expand Down
2 changes: 1 addition & 1 deletion app/assets/lang/_custom.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ title = "Helios Launcher"

[ejs.landing]
mediaGitHubURL = "https://github.com/dscalzi/HeliosLauncher"
mediaTwitterURL = "#"
mediaXURL = "#"
mediaInstagramURL = "#"
mediaYouTubeURL = "#"
mediaDiscordURL = "https://discord.gg/zNWUXdt"
Expand Down
6 changes: 3 additions & 3 deletions app/landing.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -40,10 +40,10 @@
</a>
</div>
<div class="mediaContainer">
<a href="<%- lang('landing.mediaTwitterURL') %>" class="mediaURL" id="twitterURL">
<svg id="twitterSVG" class="mediaSVG" viewBox="0 0 5000 4060" preserveAspectRatio="xMidYMid meet">
<a href="<%- lang('landing.mediaXURL') %>" class="mediaURL" id="xURL">
<svg id="xSVG" class="mediaSVG" viewBox="0 0 275 275">
<g>
<path d="M1210 4048 c-350 -30 -780 -175 -1124 -378 -56 -33 -86 -57 -86 -68 0 -16 7 -17 83 -9 114 12 349 1 493 -22 295 -49 620 -180 843 -341 l54 -38 -49 -7 c-367 -49 -660 -256 -821 -582 -30 -61 -53 -120 -51 -130 3 -16 12 -17 73 -13 97 7 199 5 270 -4 l60 -9 -65 -22 c-341 -117 -609 -419 -681 -769 -18 -88 -26 -226 -13 -239 4 -3 32 7 63 22 68 35 198 77 266 86 28 4 58 9 68 12 10 2 -22 -34 -72 -82 -240 -232 -353 -532 -321 -852 15 -149 79 -347 133 -418 16 -20 17 -19 49 20 377 455 913 795 1491 945 160 41 346 74 485 86 l82 7 -7 -59 c-5 -33 -7 -117 -6 -189 2 -163 31 -286 103 -430 141 -285 422 -504 708 -550 112 -19 333 -19 442 0 180 30 335 108 477 239 l58 54 95 -24 c143 -36 286 -89 427 -160 70 -35 131 -60 135 -56 19 19 -74 209 -151 312 -50 66 -161 178 -216 217 l-30 22 73 -14 c111 -21 257 -63 353 -101 99 -39 99 -39 99 -19 0 57 -237 326 -412 468 l-88 71 6 51 c4 28 1 130 -5 226 -30 440 -131 806 -333 1202 -380 745 -1036 1277 -1823 1477 -243 62 -430 81 -786 78 -134 0 -291 -5 -349 -10z"/>
<path d="m236 0h46l-101 115 118 156h-92.6l-72.5-94.8-83 94.8h-46l107-123-113-148h94.9l65.5 86.6zm-16.1 244h25.5l-165-218h-27.4z"/>
</g>
</svg>
</a>
Expand Down
Loading