Skip to content

Commit

Permalink
release 1.0.5
Browse files Browse the repository at this point in the history
  • Loading branch information
PeratX committed Apr 26, 2022
1 parent d357b4c commit bfb42ba
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 13 deletions.
20 changes: 8 additions & 12 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,25 +1,21 @@
# iTXTech MCL Installer

`iTX Technologies Mirai Console Loader Installer` ,支持自动下载`Java`
运行时和 [iTXTech Mirai Console Loader](https://github.com/iTXTech/mirai-console-loader)
一键下载`Java`[iTXTech Mirai Console Loader](https://github.com/iTXTech/mirai-console-loader)

## 获取`mcl-installer`

1. 前往 [Release](https://github.com/iTXTech/mcl-installer/releases) 选择对应操作系统和架构下载可执行文件
2. 文件命名格式为 `mcl-installer-版本-操作系统-架构`,例如`mcl-installer-1.0.4-windows-x86.exe``mcl-installer-1.0.4-linux-amd64`
`mcl-installer-1.0.4-macos-amd64`
2. 文件命名格式为 `mcl-installer-版本-操作系统-架构`,例如`mcl-installer-1.0.5-windows-x86.exe``mcl-installer-1.0.5-linux-amd64`
`mcl-installer-1.0.5-macos-amd64`
2. 运行 `mcl-installer`

### `Linux``macOS`为例

* 自动构建的二进制文件采用了 `upx` 进行压缩,所以暂时不能在 `WSL``macOS Big Sur` 下运行。
* 如要在以上环境运行,可以 [手动构建](#构建-mcl-installer)

```bash
$ cd 你想要安装 iTXTech MCL 的目录
$ curl -LJO https://github.com/iTXTech/mcl-installer/releases/download/v1.0.4/mcl-installer-1.0.4-linux-amd64 # 如果是macOS,就将链接中的 linux 修改为 macos
$ chmod +x mcl-installer-1.0.4-linux-amd64
$ ./mcl-installer-1.0.4-linux-amd64
$ curl -LJO https://github.com/iTXTech/mcl-installer/releases/download/v1.0.5/mcl-installer-1.0.5-linux-amd64 # 如果是macOS,就将链接中的 linux 修改为 macos
$ chmod +x mcl-installer-1.0.5-linux-amd64
$ ./mcl-installer-1.0.5-linux-amd64
```

### `Windows`为例
Expand All @@ -34,9 +30,9 @@ $ ./mcl-installer-1.0.4-linux-amd64
Would you like to install Java? (Y/N, default: Y)
是否安装Java,如果上面的检测结果输出的Java版本大于11即可,可输入N跳过安装,否则必须安装Java
Java version (8-15, default: 11): 选择Java版本安装,默认为Java 11
Java version (8, 11, 17, 18, default: 17): 选择Java版本安装,默认为Java 17
JRE or JDK (1: JRE, 2: JDK, default: JRE): 选择JRE还是JDK安装,默认为JRE
Binary Architecture (default: x64): 选择架构安装,默认x64
Binary Architecture (default: x64): 选择架构安装,默认x64,Apple Silicon 请选择 aarch64
如果操作系统为Windows并且需要使用 mirai-native,请选择 x32(而不是i386等其他名字)
The latest stable version of iTXTech MCL is x.x.x 获取最新MCL并询问是否下载
Expand Down
2 changes: 1 addition & 1 deletion src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ use zip::ZipArchive;

const MIRAI_REPO: &str = "repo.itxtech.org";

const PROG_VERSION: &str = "1.0.4";
const PROG_VERSION: &str = "1.0.5";

fn get_os() -> &'static str {
#[cfg(target_os = "windows")]
Expand Down

0 comments on commit bfb42ba

Please sign in to comment.