1
0
mirror of https://github.com/SKCraft/Launcher.git synced 2024-11-24 12:16:28 +01:00
Commit Graph

363 Commits

Author SHA1 Message Date
Henry Le Grys
d197bc80cc Fix maven for 'insubstantial' library 2024-04-15 23:19:10 +01:00
Henry
847106f1fb
Linux XDG folder support (#518) 2024-01-02 23:23:57 +00:00
Henry
93f60488fa
Prevent Forge's Log4j configuration from being overridden (#513) 2024-01-02 21:03:06 +00:00
Henry Le Grys
b5fe175650 Add support for NeoForge 2024-01-02 20:58:51 +00:00
Henry Le Grys
11808457fe Fix launcher trying to download processor outputs
Fix for forge 1.20.4; the generated client jar is specified as a library
because it goes on the classpath now.
2024-01-02 20:22:23 +00:00
Ch. König
5712eb1dfb
rewritten xdg folder fetcher.
tries old dotfolder first
2023-09-20 10:12:17 +02:00
Ch. König
9428dbbe7b
Linux XDG folder support 2023-09-13 19:50:49 +02:00
DaPorkchop_
5668e567a1
move vanilla jar to the end of the classpath
this emulates the behavior of the vanilla launcher. it's important because if the vanilla jar is first, Log4j will always auto-detect the vanilla log4j.xml instead of Forge's.
2023-08-04 18:14:14 +02:00
DaPorkchop_
31a13115fb
copy logging config from loader version manifest 2023-08-04 18:14:09 +02:00
Henry Le Grys
60030695b3 Fix update manager not displaying self-update errors 2023-02-23 23:56:48 +00:00
Henry Le Grys
8dfb0490e3 Migrate HTTP URLs to HTTPS
Fixes resource downloads
2023-01-17 11:03:31 +00:00
Henry
f45033e4fa
Make the oauth response screen customizable HTML (#488) 2022-11-04 17:50:11 +00:00
Magi1053
68bd6c3522 Make the oauth response screen customizable html 2022-11-03 22:06:45 -05:00
Henry Le Grys
13b6a77d77 GH-484 Work around bug with gradle shadow plugin 2022-08-28 00:37:36 +01:00
Henry
9060af7dfa
Add application/zip to acceptable library types (#483) 2022-08-17 01:16:29 +01:00
Dreytac
c61575d3e2
Allow zip files as libraries. 2022-08-17 04:11:31 +10:00
Henry Le Grys
460070e82f NOISSUE Fix forge manifests with empty artifact URLs failing 2022-08-11 22:59:07 +01:00
Henry Le Grys
2a6c5ee015 GH-481 Add Quilt loader support
... with a caveat that it may break in future due to Quilt's broken
metadata
2022-08-07 03:15:47 +01:00
Henry Le Grys
16f44a860c GH-473 Fix extra launcher windows opening after java version warning 2022-05-30 23:53:55 +01:00
Henry Le Grys
4decceb5c9 GH-471 Re-label configuration option as "Fallback Java Runtime" 2022-05-30 21:11:41 +01:00
Henry Le Grys
1c64de1df0 GH-472 Add warning popup for mismatched Java versions
Closes #472
2022-05-30 20:58:40 +01:00
Henry Le Grys
b8a6769c43 Fix stream-reading logic in locale control
It's pretty likely that we would always read 3 bytes but let's do it
properly
2022-05-10 10:22:58 +01:00
Henry Le Grys
90ff8dfdb7 Fix locale errors due to inconsistent mark/reset support
Fixes #470
2022-05-10 10:12:54 +01:00
Henry Le Grys
23e01defea Add support for UTF-8 encoded locale files
Fixes #467
2022-05-05 00:54:02 +01:00
Henry Le Grys
39487dda3e Make assets tree builder use hardlinks if available 2022-05-03 21:49:26 +01:00
Henry Le Grys
debd822447 Hotfix package builder emitting JSON with missing keys for empty values
The meaning of `mapper.setSerializationInclusion` changed with the
Jackson upgrade, which meant that empty collections were being fully
stripped from the output. Fix by changing the strategy to NON_ABSENT,
which only strips nulls and "absent" values like Optional.absent
2022-05-01 15:34:48 +01:00
Henry Le Grys
2fe96e4435 Fix NPE when manifests don't contain JVM arguments
Jackson upgrade exposed/introduced a bug where the JVM half of Minecraft
arguments could end up missing in some cases. Not exactly sure if the
field was null on the serializing side or just an empty array, but we
just fix it by always initializing the fields.
2022-04-27 02:08:37 +01:00
Henry Le Grys
0a5abee956 Make the build output one jar file per subproject again 2022-04-27 01:53:14 +01:00
Henry Le Grys
868426498f Upgrade dependencies & fix deprecations 2022-04-26 23:05:44 +01:00
Henry Le Grys
54c05d1f9b Upgrade to Gradle 7 2022-04-26 22:42:15 +01:00
Henry Le Grys
8e1337d603 Disregard Java runtimes that don't have a bin folder 2022-04-23 19:49:04 +01:00
Henry Le Grys
3c4c38ea84 Improve Java runtime finder resiliency
Found some more edge cases in the wild - though to be honest this entire
thing is edge cases. Sometimes /release exists, but the actual binaries
are in /jre/bin; this commit changes behaviour to look for the two
things independently.
2022-04-22 01:10:06 +01:00
Henry Le Grys
79b1289aff Check for launcher updates when the game closes 2022-04-22 00:47:49 +01:00
Henry Le Grys
bad4363bed Remove broken skin fetching for Yggdrasil auth
"mandatory migration" my ass
2022-04-18 22:38:13 +01:00
Henry Le Grys
53ba054c2c Change Java runtime selector to show "unknown" instead of "null" 2022-04-18 22:38:13 +01:00
Henry
6530ecee80
Fix pastebin uploader (#457) 2022-01-23 03:31:53 +00:00
Magi1053
288da94249
Fix pastebin uploader 2022-01-22 19:37:10 -06:00
Henry Le Grys
291f62a4dc Allow Microsoft authentication to use xdg-open on Linux 2022-01-04 00:41:53 +00:00
Henry Le Grys
28017e8103 Fix edge case in logging config handling
If the user cancelled the install process after the temp logging config
file was created, but before the installer executes, the pack would fail
to install on relaunch. Fix by allowing overwriting of the temp file.
2022-01-01 04:34:15 +00:00
Henry Le Grys
725f747f63 Ensure installer temporary directory exists when installing 2021-12-31 22:20:16 +00:00
Henry Le Grys
6f7624a66d Add embedded logging configs
Minecraft's default logging configs output XML to stdout, because the
modern launcher parses it to provide a "nicer" console. We don't do
that, so this commit adds embedded versions of the logging configs which
just output log lines normally.
2021-12-31 21:12:51 +00:00
Henry Le Grys
94ae835b42 Add support for opening URLs with xdg-open on Linux
In environments without GTK, the Swing toolkit isn't available, so
desktop calls don't work. If that's the case, fall back to xdg-open
2021-12-12 02:20:42 +00:00
Henry Le Grys
08335637f9 Refactor JavaRuntimeFinder into subclasses & clean up
The getAvailableRuntimes function is now parseable, & the new
PlatformRuntimeFinder interface makes it clear what each stage does.
2021-12-12 02:02:46 +00:00
Henry
8c9f903e16
Add dynamic background image resizing to fancy launcher (#437) 2021-12-12 00:30:57 +00:00
Henry
1ae2993e75
Refactor Java runtime finder (#451) 2021-12-12 00:30:05 +00:00
Magi1053
ff4707e7ea Assume architecture is x64 unless specified in release file 2021-12-11 18:24:00 -06:00
Magi1053
398d8f655e Refactor java runtime finder to work cross platform with the new minecraft launcher 2021-12-11 18:22:04 -06:00
Magi1053
ac116af788 Add java runtime finder for mac os 2021-12-11 16:30:03 -06:00
Henry Le Grys
5fbf5598b4 Support downloading logging config files from the version manifest
This update is required to mitigate the log4j2 vulnerability
2021-12-10 13:55:23 +00:00
Henry Le Grys
cd88effb59 Add a check for Java runtime version before setting permgen flag
Some newer GraalVM versions appear to be throwing a hard error when the
PermGen flag is specified; this commit changes the behaviour so the flag
is only passed when the Java version is unknown or older than 1.8
2021-12-05 23:43:10 +00:00