Skip to content

Commit

Permalink
add launcher version in crash report
Browse files Browse the repository at this point in the history
  • Loading branch information
cubewhy committed Jan 13, 2024
1 parent efdb668 commit 6fce80a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/main/java/org/cubewhy/celestial/Celestial.java
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,7 @@ public static void main(String[] args) throws Exception {
log.error(trace);
// please share the crash report with developers to help us solve the problems of the Celestial Launcher
StringBuffer message = new StringBuffer("Celestial Crashed\n");
message.append("Launcher Version: ").append(GitUtils.getBuildVersion());
if (config.getConfig().has("data-sharing") && config.getValue("data-sharing").getAsBoolean()) {
log.info("Uploading crash report");
String logString = org.apache.commons.io.FileUtils.readFileToString(launcherLogFile, StandardCharsets.UTF_8);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,7 @@ private void initGui() {
List<String> themes = new ArrayList<>();
themes.add("dark");
themes.add("light"); // default themes
// custom themes
for (File file : Objects.requireNonNull(themesDir.listFiles())) {
if (file.isFile() && file.getName().endsWith(".json")) {
themes.add(file.getName());
Expand Down

0 comments on commit 6fce80a

Please sign in to comment.