Skip to content

Commit

Permalink
fixed some issues
Browse files Browse the repository at this point in the history
  • Loading branch information
MrShieh-X committed Apr 1, 2023
1 parent 6314ca7 commit a16b7ea
Show file tree
Hide file tree
Showing 9 changed files with 27 additions and 16 deletions.
Binary file modified CMCLExe/cmcl/cmcl.rc
Binary file not shown.
2 changes: 1 addition & 1 deletion README-en.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Console Minecraft Launcher
A Launcher for Minecraft Java Edition Running On The Console

[![Latest Version](https://img.shields.io/badge/Release-v2.1.2-brightgreen)](https://github.com/MrShieh-X/console-minecraft-launcher/releases)
[![Latest Version](https://img.shields.io/badge/Release-v2.1.3-brightgreen)](https://github.com/MrShieh-X/console-minecraft-launcher/releases)
![Release Date](https://img.shields.io/badge/Date-2023--04--01-brightgreen)
![Software Requires](https://img.shields.io/badge/Software%20Requires-Java%208-blue)

Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Console Minecraft Launcher
一个在控制台上运行的 Minecraft Java 版启动器

[![最新版本](https://img.shields.io/badge/%E6%9C%80%E6%96%B0%E7%89%88%E6%9C%AC-v2.1.2-brightgreen)](https://github.com/MrShieh-X/console-minecraft-launcher/releases)
[![最新版本](https://img.shields.io/badge/%E6%9C%80%E6%96%B0%E7%89%88%E6%9C%AC-v2.1.3-brightgreen)](https://github.com/MrShieh-X/console-minecraft-launcher/releases)
![发布日期](https://img.shields.io/badge/%E5%8F%91%E5%B8%83%E6%97%A5%E6%9C%9F-2023--04--01-brightgreen)
![软件需求](https://img.shields.io/badge/%E8%BD%AF%E4%BB%B6%E9%9C%80%E6%B1%82-Java%208-blue)

Expand Down
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ plugins {
}

group 'com.mrshiehx'
String versionString='2.1.2'
String versionString='2.1.3'
version versionString

repositories {
Expand Down
16 changes: 8 additions & 8 deletions new_version.json
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
{
"latestVersionName": "2.1.2",
"latestVersionCode": 17,
"latestVersionName": "2.1.3",
"latestVersionCode": 18,
"latestVersionDownloadUrls": [
"https://github.com/MrShieh-X/console-minecraft-launcher/releases/download/2.1.2/cmcl.jar",
"https://github.com/MrShieh-X/console-minecraft-launcher/releases/download/2.1.2/cmcl.exe",
"https://github.com/MrShieh-X/console-minecraft-launcher/releases/download/2.1.2/cmcl",
"https://gitee.com/MrShiehX/console-minecraft-launcher/releases/download/2.1.2/cmcl.jar",
"https://gitee.com/MrShiehX/console-minecraft-launcher/releases/download/2.1.2/cmcl.exe",
"https://gitee.com/MrShiehX/console-minecraft-launcher/releases/download/2.1.2/cmcl"
"https://github.com/MrShieh-X/console-minecraft-launcher/releases/download/2.1.3/cmcl.jar",
"https://github.com/MrShieh-X/console-minecraft-launcher/releases/download/2.1.3/cmcl.exe",
"https://github.com/MrShieh-X/console-minecraft-launcher/releases/download/2.1.3/cmcl",
"https://gitee.com/MrShiehX/console-minecraft-launcher/releases/download/2.1.3/cmcl.jar",
"https://gitee.com/MrShiehX/console-minecraft-launcher/releases/download/2.1.3/cmcl.exe",
"https://gitee.com/MrShiehX/console-minecraft-launcher/releases/download/2.1.3/cmcl"
],
"updateDate": "2023-04-01",
"updateContentEn": "- Fixed issue raised by Butterblock233 on Issue#26.",
Expand Down
4 changes: 2 additions & 2 deletions src/main/java/com/mrshiehx/cmcl/constants/Constants.java
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@

public class Constants {
public static final File DEFAULT_CONFIG_FILE = new File("cmcl.json");
public static final String CMCL_VERSION_NAME = "2.1.2";
public static final int CMCL_VERSION_CODE = 17;
public static final String CMCL_VERSION_NAME = "2.1.3";
public static final int CMCL_VERSION_CODE = 18;
public static final String CLIENT_ID = getMicrosoftAuthenticationClientID();
public static final String COPYRIGHT = "Copyright (C) 2021-2023 MrShiehX";
public static final int INDENT_FACTOR = 2;//JsonObject转String的间隔
Expand Down
7 changes: 6 additions & 1 deletion src/main/java/com/mrshiehx/cmcl/utils/Utils.java
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
import org.json.JSONObject;

import java.io.*;
import java.net.URLDecoder;
import java.util.*;
import java.util.stream.Stream;
import java.util.stream.StreamSupport;
Expand Down Expand Up @@ -197,6 +198,10 @@ public static <T> Stream<T> iteratorToStream(Iterator<T> iterator) {
}

public static String getExecutableFilePath() {
return Utils.class.getProtectionDomain().getCodeSource().getLocation().getPath();
try {
return URLDecoder.decode(Utils.class.getProtectionDomain().getCodeSource().getLocation().getPath(), "UTF-8");
} catch (UnsupportedEncodingException e) {
throw new RuntimeException(e);
}
}
}
5 changes: 4 additions & 1 deletion update_logs-en.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
# Update Logs
Currently, the latest version is 2.1.2, which was updated on April 1, 2023.
Currently, the latest version is 2.1.3, which was updated on April 1, 2023.

## 2.1.3 (Apr. 1, 2023)
- Fixed some issues.

## 2.1.2 (Apr. 1, 2023)
- Fixed issue raised by [Butterblock233](https://github.com/Butterblock233) on [Issue#26](https://github.com/MrShieh-X/console-minecraft-launcher/issues/26).
Expand Down
5 changes: 4 additions & 1 deletion update_logs.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
# 更新日志
目前的最新版本为2.1.2,发布日期是2023年4月1日。
目前的最新版本为2.1.3,发布日期是2023年4月1日。

## 2.1.3(2023年4月1日)
- 修复了一些问题。

## 2.1.2(2023年4月1日)
- 解决了由 [Butterblock233](https://github.com/Butterblock233)[Issue#26](https://github.com/MrShieh-X/console-minecraft-launcher/issues/26) 提出的问题。
Expand Down

0 comments on commit a16b7ea

Please sign in to comment.