{"id":21368535,"url":"https://github.com/itxtech/mcl-installer","last_synced_at":"2025-04-06T07:12:17.671Z","repository":{"id":40376756,"uuid":"335894264","full_name":"iTXTech/mcl-installer","owner":"iTXTech","description":"MCL一键安装工具","archived":false,"fork":false,"pushed_at":"2023-03-06T04:35:33.000Z","size":69,"stargazers_count":355,"open_issues_count":13,"forks_count":35,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-30T05:09:36.340Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"agpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/iTXTech.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2021-02-04T08:54:03.000Z","updated_at":"2025-03-26T14:47:29.000Z","dependencies_parsed_at":"2023-02-08T17:31:55.375Z","dependency_job_id":"68ba86a2-4e30-4bc5-ac9e-0e996df558f0","html_url":"https://github.com/iTXTech/mcl-installer","commit_stats":null,"previous_names":[],"tags_count":31,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iTXTech%2Fmcl-installer","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iTXTech%2Fmcl-installer/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iTXTech%2Fmcl-installer/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iTXTech%2Fmcl-installer/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/iTXTech","download_url":"https://codeload.github.com/iTXTech/mcl-installer/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247445671,"owners_count":20939958,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-22T07:25:02.666Z","updated_at":"2025-04-06T07:12:17.652Z","avatar_url":"https://github.com/iTXTech.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# iTXTech MCL Installer\n\n一键下载`Java`和 [iTXTech Mirai Console Loader](https://github.com/iTXTech/mirai-console-loader) 。\n\n## 获取`mcl-installer`\n\n1. 前往 [Release](https://github.com/iTXTech/mcl-installer/releases) 选择对应操作系统和架构下载可执行文件\n2. 文件命名格式为 `mcl-installer-版本-操作系统-架构`，例如`mcl-installer-1.0.6-windows-x86.exe`，`mcl-installer-1.0.6-linux-amd64`\n   ，`mcl-installer-1.0.6-macos-amd64`等\n2. 运行 `mcl-installer`\n\n### 以`Linux`和`macOS`为例\n\n**请优先选择以`musl`结尾的二进制文件，无外部依赖，兼容性更好。**\n\n```bash\ncd 你想要安装 iTXTech MCL 的目录\ncurl -LJO https://github.com/iTXTech/mcl-installer/releases/download/v1.0.7/mcl-installer-1.0.7-linux-amd64-musl # 如果是macOS，就将链接中的 linux 修改为 macos\nchmod +x mcl-installer-1.0.7-linux-amd64-musl\n./mcl-installer-1.0.7-linux-amd64-musl\n```\n\n### 以`Windows`为例\n\n下载 `mcl-installer-版本-windows-amd64.exe` 到想要安装 `iTXTech MCL` 的目录中执行。\n\n## 运行 `mcl-installer`\n\n**如果您是新手，且没有特殊需求，一路回车就能进行安装了。**\n\n```\nWould you like to install Java? (Y/N, default: Y)\n是否安装Java，如果上面的检测结果输出的Java版本大于11即可，可输入N跳过安装，否则必须安装Java\n\nJava version (11, 17, 18, default: 17): 选择Java版本安装，默认为Java 17\nJRE or JDK (1: JRE, 2: JDK, default: JRE): 选择JRE还是JDK安装，默认为JRE\nBinary Architecture (default: x64): 选择架构安装，默认x64，Apple Silicon 请选择 aarch64\n如果操作系统为Windows并且需要使用 mirai-native，请选择 x32（而不是i386等其他名字）\n\nThe latest stable version of iTXTech MCL is x.x.x 获取最新MCL并询问是否下载\nWould you like to download it? (Y/N, default: Y) Y：下载，N：取消\n```\n\n## 使用 [`Mirai Repo`](https://github.com/project-mirai/mirai-repo-mirror) 镜像\n\n```bash\n# MCL Installer 接受第一个参数为 Mirai Repo 地址，强制使用HTTPS协议，不以 / 结尾\n./mcl-installer mirai.mamoe.net/assets/mcl\n```\n\n## 构建 `mcl-installer`\n\n* `mcl-installer` 使用 [rust](https://www.rust-lang.org/) 编写，需要调用 `cargo` 构建。\n\n```bash\ngit clone https://github.com/iTXTech/mcl-installer.git\ncd mcl-installer\n# native-tls =\u003e 使用系统的 OpenSSL，rustls =\u003e 使用 rustls。\n# --release 用于构建优化过的二进制文件，如需要进行调试请去除该参数。\ncargo build --features native-tls --release\ncd target/release\nstrip mcl-installer # strip 可减小可执行文件大小\nupx --best --lzma mcl-installer # 使用 upx 压缩可进一步缩小可执行文件大小\n```\n\n## 开源许可证\n\n    iTXTech MCL Installer\n    Copyright (C) 2021-2022 iTX Technologies\n\n    This program is free software: you can redistribute it and/or modify\n    it under the terms of the GNU Affero General Public License as\n    published by the Free Software Foundation, either version 3 of the\n    License, or (at your option) any later version.\n\n    This program is distributed in the hope that it will be useful,\n    but WITHOUT ANY WARRANTY; without even the implied warranty of\n    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n    GNU Affero General Public License for more details.\n\n    You should have received a copy of the GNU Affero General Public License\n    along with this program.  If not, see \u003chttp://www.gnu.org/licenses/\u003e.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fitxtech%2Fmcl-installer","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fitxtech%2Fmcl-installer","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fitxtech%2Fmcl-installer/lists"}