5 Star 14 Fork 5

Suhuiw4123 / mirai-dice-release-noextra

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
README.md 2.89 KB
一键复制 编辑 原始数据 按行查看 历史
w4123 提交于 2021-03-15 12:54 . first commit

官方提供的脚本

  • config.js - 通过命令行传入配置
  • updater.js - 用于校验和下载mirai文件
  • boot.js - 用于启动mirai console
  • repo.js - 用于获取mirai repo仓库中的信息

使用样例

  • 安装 Mirai Native

.\mcl --update-package org.itxtech:mirai-native --type plugin --channel stable

  • 安装 Chat Command

.\mcl --update-package net.mamoe:chat-command --type plugin --channel stable

  • 指定 mirai-console 版本(指定的版本必须为该Channel中存在的版本)

.\mcl --update-package net.mamoe:mirai-console --channel stable --version 1.0.0

  • 禁用updater脚本

.\mcl --disable-script updater

  • 启用 updater 脚本

.\mcl --enable-script updater

  • 更新运行库但不启动

.\mcl --dry-run

  • 查看帮助
PS > .\mcl -h

usage: mcl
 -a,--update-package <PackageName>   Add or update package
 -b,--show-boot-props                Show Mirai Console boot properties
 -c,--log-level <level>              Set log level
 -d,--disable-script <ScriptName>    Disable script (exclude ".js")
 -e,--enable-script <ScriptName>     Enable script (exclude ".js")
 -f,--set-boot-entry <EntryClass>    Set Mirai Console boot entry
 -g,--set-boot-args <Arguments>      Set Mirai Console boot arguments
 -i,--package-info <PackageName>     Fetch info for specified package
 -j,--list-repo-packages             List available packages in Mirai Repo
 -l,--list-disabled-scripts          List disabled scripts
 -m,--set-mirai-repo <Address>       Set Mirai Repo address
 -n,--channel <Channel>              Set update channel of package
 -o,--show-repos                     Show Mirai Repo and Maven Repo
 -p,--proxy <address>                Set HTTP proxy
 -r,--remove-package <PackageName>   Remove package
 -s,--list-packages                  List configured packages
 -t,--type <Type>                    Set type of package
 -u,--disable-update                 Disable auto update
 -v,--set-maven-repo <Address>       Set Maven Repo address
 -w,--version <Version>              Set version of package
 -x,--force-version                  Force download specified version
 -z,--dry-run                        Skip boot phase

开源许可证

Copyright (C) 2020 iTX Technologies

This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as
published by the Free Software Foundation, either version 3 of the
License, or (at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU Affero General Public License for more details.

You should have received a copy of the GNU Affero General Public License
along with this program.  If not, see <http://www.gnu.org/licenses/>.
1
https://gitee.com/suhuiw4123/mirai-dice-release-noextra.git
git@gitee.com:suhuiw4123/mirai-dice-release-noextra.git
suhuiw4123
mirai-dice-release-noextra
mirai-dice-release-noextra
master

搜索帮助