00:00:00
安装与更新
仓库地址Miao-Plugin
fork版安装指令
⚠️meta资源外置
最新版本中已移除meta资源,首次安装插件需下载meta资源(或启动Yunzai即可自动安装)
CNB源下载(暂无其他源):
bash
git clone -b meta-gs https://cnb.cool/qsyhh_res/meta.git "./plugins/miao-plugin/resources/meta-gs" --depth=1
git clone -b meta-sr https://cnb.cool/qsyhh_res/meta.git "./plugins/miao-plugin/resources/meta-sr" --depth=1如何兼容? 点击此处展开/收起
示例js:Yunzai/plugins/example-plugin/apps/example.js
bash
监听事件错误:login.js
Error: ENOENT: no such file or directory, scandir 'Yunzai\plugins\miao-plugin\resources\meta-gs\character'
at Object.readdirSync (node:fs:1502:26)
at Object.init (file:///C:/Yunzai/example-plugin/apps/example.js:13:20)JavaScript
import { installPromise } from "../../../miao-plugin/installMeta.js"
await installPromise() // 报错行上行写入gitee(深测源)
暂不提供地址
GitCode(内测源)
首先前往token-classic获取个人令牌
方式1: 首次/重新安装插件:
bash
git clone --depth=1 https://用户名:个人令牌@gitcode.com/qsyhh_code/miao-plugin.git ./plugins/miao-plugin/ --depth=1
pnpm install --filter=miao-plugin
git clone -b meta-gs https://cnb.cool/qsyhh_res/meta.git "./plugins/miao-plugin/resources/meta-gs" --depth=1
git clone -b meta-sr https://cnb.cool/qsyhh_res/meta.git "./plugins/miao-plugin/resources/meta-sr" --depth=1方式2: 🔐 换源
注: 该方式将会【强制覆盖】本地所有文件,否则无法使用指令更新插件,但面板图、配置文件等文件会保留。自修改过多请勿使用本fork版,自修改报错一律不受理
bash
cd plugins/miao-plugin
git remote set-url origin https://用户名:个人令牌@gitcode.com/qsyhh_code/miao-plugin.git
// 原fork用户这里可直接执行git pull,无需后续操作
git fetch origin master
git reset --hard origin/masterGitHub(稳定源)
方式1: 首次/重新安装插件:
bash
git clone --depth=1 https://github.com/qsyhh/miao-plugin.git ./plugins/miao-plugin/ --depth=1
pnpm install --filter=miao-plugin
git clone -b meta-gs https://cnb.cool/qsyhh_res/meta.git "./plugins/miao-plugin/resources/meta-gs" --depth=1
git clone -b meta-sr https://cnb.cool/qsyhh_res/meta.git "./plugins/miao-plugin/resources/meta-sr" --depth=1方式2: 🔐 换源
注: 该方式将会【强制覆盖】本地所有文件,否则无法使用指令更新插件,但面板图、配置文件等文件会保留。自修改过多请勿使用本fork版,自修改报错一律不受理
bash
cd plugins/miao-plugin
git remote set-url origin https://github.com/qsyhh/miao-plugin.git
// 原fork用户这里可直接执行git pull,无需后续操作
git fetch origin master
git reset --hard origin/master原版安装指令
github
bash
git clone --depth=1 https://github.com/yoimiya-kokomi/miao-plugin.git ./plugins/miao-plugin/
pnpm install --filter=miao-plugin警告
如果你的网络环境较差,可以使用ghfast.top提供的加速代理
bash
git clone --depth=1 https://ghfast.top/https://github.com/yoimiya-kokomi/miao-plugin ./plugins/miao-plugin/
pnpm install --filter=miao-plugingitee
危险
由于不可抗力因素,gitee仓库被判定违规,建议使用github
bash
git clone --depth=1 https://gitee.com/yoimiya-kokomi/miao-plugin.git ./plugins/miao-plugin/
pnpm install --filter=miao-plugin手工下载安装(不推荐)
手工下载安装包,解压后将miao-plugin-master更名为miao-plugin,然后放置在Yunzai的plugins目录内
虽然此方式能够使用,但无法使用#喵喵更新进行更新,不利于后续升级,故不推荐使用
后续更新
安装完毕后,管理员只需发送 #喵喵更新 即可自动更新 miao-plugin。