MiraiForum

    • 注册
    • 登录
    • 搜索
    • 热门
    • 最新
    • 未解决
    • 标签
    • 群组
    • 友情链接

    自动从 Github Release Latest 更新 JAR 插件

    使用交流
    1
    1
    205
    正在加载更多帖子
    • 从旧到新
    • 从新到旧
    • 最多赞同
    回复
    • 在新帖中回复
    登录后回复
    此主题已被删除。只有拥有主题管理权限的用户可以查看。
    • cssxsh
      cssxsh 最后由 编辑

      我在我的 https://github.com/gnuf0rce/github-helper 插件 1.3.0中
      添加了启动时检查已安装插件对应的 Github Release Latest 更新并下载的功能

      比如 如果你安装了 bilibili-dynamic-mirai-plugin 他会 从 https://github.com/Colter23/bilibili-dynamic-mirai-plugin/releases/latest 获得最新版本信息,
      对比目前已安装的版本,如果发现是更新的版本,就下载
      并且会在正常退出时删除旧版插件

      默认的更新列表可以看
      https://github.com/gnuf0rce/github-helper/blob/main/src/main/kotlin/io/github/gnuf0rce/mirai/github/GitHubReleasePluginUpdater.kt

      可以通过编辑配置文件添加或者减少 更新的项目

      !!!请注意不要为同一插件同时使用此更新方法和MCL订阅配置,这可能会引起一些不必要的麻烦

      1 条回复 最后回复 回复 引用 1
      • 1 / 1
      • First post
        Last post
      Powered by Mamoe Technologies & NodeBB | 友情链接 | 服务监控 | Contact