Skip to content

Commit

Permalink
add a version string in launch script and change scroll speed
Browse files Browse the repository at this point in the history
  • Loading branch information
cubewhy committed Jan 1, 2024
1 parent fef4e74 commit 08bccfb
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 8 deletions.
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ plugins {
}

group = 'org.cubewhy.celestial'
version = '1.2-pre3-SNAPSHOT'
version = '1.2-pre4-SNAPSHOT'

println('Java: ' + System.getProperty('java.version') + ' JVM: ' + System.getProperty('java.vm.version') + '(' + System.getProperty('java.vendor') + ') Arch: ' + System.getProperty('os.arch'))
println('Celestial Launcher -> https://www.lunarclient.top/')
Expand Down
12 changes: 5 additions & 7 deletions src/main/java/org/cubewhy/celestial/Celestial.java
Original file line number Diff line number Diff line change
Expand Up @@ -189,12 +189,9 @@ private static void checkJava() throws IOException {
JOptionPane.showMessageDialog(null, f.getString("compatibility.warn.message"), f.getString("compatibility.warn.title"), JOptionPane.WARNING_MESSAGE);
}

// detect the official launcher (Windows only)
if (OSEnum.getCurrent().equals(OSEnum.Windows)) {
if (sessionFile.exists() && LunarUtils.isReallyOfficial(sessionFile)) {
log.warn("Detected the official launcher");
JOptionPane.showMessageDialog(null, f.getString("warn.official-launcher.message"), f.getString("warn.official-launcher.title"), JOptionPane.WARNING_MESSAGE);
}
if (sessionFile.exists() && LunarUtils.isReallyOfficial(sessionFile)) {
log.warn("Detected the official launcher");
JOptionPane.showMessageDialog(null, f.getString("warn.official-launcher.message"), f.getString("warn.official-launcher.title"), JOptionPane.WARNING_MESSAGE);
}
}

Expand Down Expand Up @@ -447,7 +444,8 @@ public static File launch(String version, String branch, String module) throws I
// Microsoft Windows
// NEW: Use CRLF (Windows 7)
writer.write("@echo off\r\n");
writer.write("@rem Generated by LunarCN (Celestial Launcher)\nrem Website: https://www.lunarclient.top/\r\n");
writer.write("@rem Generated by LunarCN (Celestial Launcher)\r\n@rem Website: https://www.lunarclient.top/\r\n");
writer.write(String.format("@rem Version %s\r\n", GitUtils.getBuildVersion()));
writer.write("@rem Please donate to support us to continue develop https://www.lunarclient.top/donate\r\n");
writer.write("@rem You can run this script to debug your game, or share this script to developers to resolve your launch problem\r\n");
writer.write("chcp 65001\r\n"); // unicode support for Windows which uses Chinese
Expand Down
1 change: 1 addition & 0 deletions src/main/java/org/cubewhy/celestial/gui/pages/GuiNews.java
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ public GuiNews() throws IOException {

private void initGui() {
// render blogPosts
this.getVerticalScrollBar().setUnitIncrement(30);
log.info("Loading blogPosts (gui)");
if (blogPosts.isJsonNull()) {
log.error("Failed to load blog posts");
Expand Down

0 comments on commit 08bccfb

Please sign in to comment.