MiraiForum

    • Register
    • Login
    • Search
    • Popular
    • Recent
    • Unsolved
    • Tags
    • Groups
    • 友情链接

    自动从 Github Release Latest 更新 JAR 插件

    使用交流
    1
    1
    70
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • cssxsh
      cssxsh last edited by

      我在我的 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 Reply Last reply Reply Quote 1
      • 1 / 1
      • First post
        Last post
      Powered by Mamoe Technologies & NodeBB | 友情链接 | 服务监控 | Contact