Skip to content

Commit

Permalink
updated for v2.1
Browse files Browse the repository at this point in the history
  • Loading branch information
MrShieh-X committed Feb 12, 2023
1 parent 4b8b8a2 commit 7703f4c
Show file tree
Hide file tree
Showing 7 changed files with 48 additions and 20 deletions.
4 changes: 2 additions & 2 deletions README-en.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
# Console Minecraft Launcher
A Launcher for Minecraft Java Edition Running On The Console

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

### [中文README](README.md) | [Update Logs](update_logs-en.md) | [Troubleshooting](troubleshooting-en.md)
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
# Console Minecraft Launcher
一个在控制台上运行的 Minecraft Java 版启动器

[![最新版本](https://img.shields.io/badge/%E6%9C%80%E6%96%B0%E7%89%88%E6%9C%AC-v2.0.1-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--01--20-brightgreen)
[![最新版本](https://img.shields.io/badge/%E6%9C%80%E6%96%B0%E7%89%88%E6%9C%AC-v2.1-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--02--12-brightgreen)
![软件需求](https://img.shields.io/badge/%E8%BD%AF%E4%BB%B6%E9%9C%80%E6%B1%82-Java%208-blue)

### [English README](README-en.md) | [更新日志](update_logs.md) | [疑难解答](troubleshooting.md)
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.0.1'
String versionString='2.1'
version versionString

repositories {
Expand Down
22 changes: 11 additions & 11 deletions new_version.json
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
{
"latestVersionName": "2.0.1",
"latestVersionCode": 14,
"latestVersionName": "2.1",
"latestVersionCode": 15,
"latestVersionDownloadUrls": [
"https://github.com/MrShieh-X/console-minecraft-launcher/releases/download/2.0.1/cmcl.jar",
"https://github.com/MrShieh-X/console-minecraft-launcher/releases/download/2.0.1/cmcl.exe",
"https://github.com/MrShieh-X/console-minecraft-launcher/releases/download/2.0.1/cmcl",
"https://gitee.com/MrShiehX/console-minecraft-launcher/releases/download/2.0.1/cmcl.jar",
"https://gitee.com/MrShiehX/console-minecraft-launcher/releases/download/2.0.1/cmcl.exe",
"https://gitee.com/MrShiehX/console-minecraft-launcher/releases/download/2.0.1/cmcl"
"https://github.com/MrShieh-X/console-minecraft-launcher/releases/download/2.1/cmcl.jar",
"https://github.com/MrShieh-X/console-minecraft-launcher/releases/download/2.1/cmcl.exe",
"https://github.com/MrShieh-X/console-minecraft-launcher/releases/download/2.1/cmcl",
"https://gitee.com/MrShiehX/console-minecraft-launcher/releases/download/2.1/cmcl.jar",
"https://gitee.com/MrShiehX/console-minecraft-launcher/releases/download/2.1/cmcl.exe",
"https://gitee.com/MrShiehX/console-minecraft-launcher/releases/download/2.1/cmcl"
],
"updateDate": "2023-01-20",
"updateContentEn": "- Fixed some issues.",
"updateContentZh": "- \u4fee\u590d\u4e86\u4e00\u4e9b\u95ee\u9898\u3002"
"updateDate": "2023-02-12",
"updateContentEn": "- Optimized the startup speed of the launcher.\n- Version-related operations (version) may not be followed by the version to operate the selected version, such as `cmcl version --fabric --api`.\n- Version isolation can be set and unset via `version [<version>] --isolate` and `version [<version>] --unset-isolate`.\n- The startup command of the version can be printed by `version [<version>] -p` or `version [<version>] --print-command`.\n- You can export the startup script via `version [<version>] --export-script=<script file>`, or `version [<version>] --export-script-ps=<script file>` in PowerShell format.\n- The original startup command printing options `-p` and `--print` can not be followed by the version, which means to print the startup command of the selected version.\n### New features proposed by Jaffe2718 on Issue#25\n- Cleaner help documentation.\n- Will automatically install mod dependencies.\n- You can not specify the download source when installing mods and modpacks. When you download for the first time, you will be asked and saved locally for next use.\n- You can download mods, download and install modpacks from the Internet through `cmcl mod --url=<mod url>` and `cmcl modpack --url=<modpack url> [--storage=<version storage name>]`.\n- When installing mods and modpacks, you can use `--game-version=<game version>` to specify the game version, and `-v, --version=<mod version>` to specify the mod or modpack version. For some mods or modpacks in CurseForge whose version name does not exist in the filename, so for them, the corresponding mod or modpack cannot be found correctly, this function may not help, or even match wrongly.",
"updateContentZh": "- \u4f18\u5316\u4e86\u542f\u52a8\u5668\u7684\u542f\u52a8\u901f\u5ea6\u3002\n- \u4e0e\u7248\u672c\u76f8\u5173\u7684\u64cd\u4f5c\uff08version\uff09\u540e\u9762\u53ef\u4ee5\u4e0d\u63a5\u7248\u672c\u4ee5\u64cd\u4f5c\u5df2\u9009\u62e9\u7248\u672c\uff0c\u5982`cmcl version --fabric --api`\u3002\n- \u53ef\u901a\u8fc7`version [<\u7248\u672c>] --isolate`\u4e0e`version [<\u7248\u672c>] --unset-isolate`\u8bbe\u7f6e\u4e0e\u53d6\u6d88\u8bbe\u7f6e\u7248\u672c\u9694\u79bb\u3002\n- \u53ef\u901a\u8fc7`version [<\u7248\u672c>] -p`\u6216`version [<\u7248\u672c>] --print-command`\u6253\u5370\u7248\u672c\u7684\u542f\u52a8\u547d\u4ee4\u3002\n- \u53ef\u901a\u8fc7`version [<\u7248\u672c>] --export-script=<\u811a\u672c\u6587\u4ef6>`\u5bfc\u51fa\u542f\u52a8\u811a\u672c\uff0c\u901a\u8fc7`version [<\u7248\u672c>] --export-script-ps=<\u811a\u672c\u6587\u4ef6>`\u5bfc\u51fa PowerShell \u683c\u5f0f\u7684\u542f\u52a8\u811a\u672c\u3002\n- \u539f\u6253\u5370\u542f\u52a8\u547d\u4ee4\u7684\u9009\u9879`-p`\u4e0e`--print`\u540e\u9762\u53ef\u4e0d\u52a0\u4e0a\u7248\u672c\uff0c\u610f\u4e3a\u6253\u5370\u5df2\u9009\u62e9\u7248\u672c\u7684\u542f\u52a8\u547d\u4ee4\u3002\n### \u7531 Jaffe2718 \u4e8e Issue#25 \u63d0\u51fa\u7684\u65b0\u7279\u6027\n- \u5e2e\u52a9\u6587\u6863\u66f4\u52a0\u6574\u6d01\u3002\n- \u5c06\u4f1a\u81ea\u52a8\u5b89\u88c5\u524d\u7f6e\u6a21\u7ec4\u3002\n- \u5b89\u88c5\u6a21\u7ec4\u4e0e\u6574\u5408\u5305\u65f6\u53ef\u4ee5\u4e0d\u6307\u5b9a\u4e0b\u8f7d\u6e90\uff0c\u9996\u6b21\u4e0b\u8f7d\u65f6\u4f1a\u8be2\u95ee\u5e76\u4fdd\u5b58\u5230\u672c\u5730\u4f9b\u4e0b\u6b21\u4f7f\u7528\u3002\n- \u53ef\u901a\u8fc7`cmcl mod --url=<\u6a21\u7ec4\u5730\u5740>`\u4e0e`cmcl modpack --url=<\u6574\u5408\u5305\u5730\u5740> [--storage=<\u7248\u672c\u5b58\u50a8\u540d\u79f0>]`\u4ece\u4e92\u8054\u7f51\u4e0b\u8f7d\u6a21\u7ec4\u3001\u4e0b\u8f7d\u4e0e\u5b89\u88c5\u6574\u5408\u5305\u3002\n- \u5b89\u88c5\u6a21\u7ec4\u4e0e\u6574\u5408\u5305\u65f6\uff0c\u53ef\u901a\u8fc7`--game-version=<\u6e38\u620f\u7248\u672c>`\u6307\u5b9a\u6e38\u620f\u7248\u672c\uff0c\u901a\u8fc7`-v, --version=<\u6a21\u7ec4\u7248\u672c>`\u6307\u5b9a\u6a21\u7ec4\u6216\u6574\u5408\u5305\u7684\u7248\u672c\u3002\u56e0 CurseForge \u4e2d\u67d0\u4e9b\u6a21\u7ec4\u6216\u6574\u5408\u5305\u7684\u7248\u672c\u540d\u79f0\u4e0d\u5b58\u5728\u4e8e\u6587\u4ef6\u540d\u4e2d\uff0c\u6240\u4ee5\u5bf9\u4e8e\u4ed6\u4eec\uff0c\u5e76\u4e0d\u80fd\u6b63\u786e\u5730\u627e\u5230\u76f8\u5e94\u7684\u6a21\u7ec4\u6216\u6574\u5408\u5305\uff0c\u6b64\u529f\u80fd\u53ef\u80fd\u4f1a\u65e0\u6d4e\u4e8e\u4e8b\uff0c\u751a\u81f3\u4f1a\u5339\u914d\u9519\u8bef\u3002"
}
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.0.1";
public static final int CMCL_VERSION_CODE = 14;
public static final String CMCL_VERSION_NAME = "2.1";
public static final int CMCL_VERSION_CODE = 15;
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
16 changes: 15 additions & 1 deletion update_logs-en.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,19 @@
# Update Logs
Currently, the latest version is 2.0.1, which was updated on January 20, 2023.
Currently, the latest version is 2.1, which was updated on February 12, 2023.

## 2.1 (Feb. 12, 2023)
- Optimized the startup speed of the launcher.
- Version-related operations (version) may not be followed by the version to operate the selected version, such as `cmcl version --fabric --api`.
- Version isolation can be set and unset via `version [<version>] --isolate` and `version [<version>] --unset-isolate`.
- The startup command of the version can be printed by `version [<version>] -p` or `version [<version>] --print-command`.
- You can export the startup script via `version [<version>] --export-script=<script file>`, or `version [<version>] --export-script-ps=<script file>` in PowerShell format.
- The original startup command printing options `-p` and `--print` can not be followed by the version, which means to print the startup command of the selected version.
### New features proposed by [Jaffe2718](https://github.com/Jaffe2718) on [Issue#25](https://github.com/MrShieh-X/console-minecraft-launcher/issues/25)
- Cleaner help documentation.
- Will automatically install mod dependencies.
- You can not specify the download source when installing mods and modpacks. When you download for the first time, you will be asked and saved locally for next use.
- You can download mods, download and install modpacks from the Internet through `cmcl mod --url=<mod url>` and `cmcl modpack --url=<modpack url> [--storage=<version storage name>]`.
- When installing mods and modpacks, you can use `--game-version=<game version>` to specify the game version, and `-v, --version=<mod version>` to specify the mod or modpack version. For some mods or modpacks in CurseForge whose version name does not exist in the filename, so for them, the corresponding mod or modpack cannot be found correctly, this function may not help, or even match wrongly.

## 2.0.1 (Jan. 20, 2023)
- Fixed some issues.
Expand Down
16 changes: 15 additions & 1 deletion update_logs.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,19 @@
# 更新日志
目前的最新版本为2.0.1,发布日期是2023年1月20日。
目前的最新版本为2.1,发布日期是2023年2月12日。

## 2.1(2023年2月12日)
- 优化了启动器的启动速度。
- 与版本相关的操作(version)后面可以不接版本以操作已选择版本,如`cmcl version --fabric --api`
- 可通过`version [<版本>] --isolate``version [<版本>] --unset-isolate`设置与取消设置版本隔离。
- 可通过`version [<版本>] -p``version [<版本>] --print-command`打印版本的启动命令。
- 可通过`version [<版本>] --export-script=<脚本文件>`导出启动脚本,通过`version [<版本>] --export-script-ps=<脚本文件>`导出 PowerShell 格式的启动脚本。
- 原打印启动命令的选项`-p``--print`后面可不加上版本,意为打印已选择版本的启动命令。
### [Jaffe2718](https://github.com/Jaffe2718)[Issue#25](https://github.com/MrShieh-X/console-minecraft-launcher/issues/25) 提出的新特性
- 帮助文档更加整洁。
- 将会自动安装前置模组。
- 安装模组与整合包时可以不指定下载源,首次下载时会询问并保存到本地供下次使用。
- 可通过`cmcl mod --url=<模组地址>``cmcl modpack --url=<整合包地址> [--storage=<版本存储名称>]`从互联网下载模组、下载与安装整合包。
- 安装模组与整合包时,可通过`--game-version=<游戏版本>`指定游戏版本,通过`-v, --version=<模组版本>`指定模组或整合包的版本。因 CurseForge 中某些模组或整合包的版本名称不存在于文件名中,所以对于他们,并不能正确地找到相应的模组或整合包,此功能可能会无济于事,甚至会匹配错误。

## 2.0.1(2023年1月20日)
- 修复了一些问题。
Expand Down

0 comments on commit 7703f4c

Please sign in to comment.