zh_cn:tutorial:minotaur
This is an old revision of the document!
Table of Contents
使用 Minotaur 在 Modrinth 上发布模组
Minotaur 是一个和 CurseGradle 很相似的 Gradle 插件。 这个页面只是简单的介绍一下 Minotaur 的基础用法,然后你需要在它的文档中学习更加深入的知识。
基础
在此之前,添加 minotaur 插件到你的 build.gradle
文件的插件列表当中,像是以下这样:
plugins { id "com.modrinth.minotaur" version "1.2.1" }
现在你可以创建一个新的 Gradle 任务去发布你的模组到 Modrinth 了。
这里有一个基础的示例。
import com.modrinth.minotaur.TaskModrinthUpload task publishModrinth (type: TaskModrinthUpload) { token = 'mySecretToken' // 如果你想通过 Github 发布你的模组的话,请在这里使用环境配置! projectId = 'modrinthModID' // 你的 modrinth 项目的 ID,错误的话 minotaur 会不起作用。 versionNumber = '1.0.0' // 上传模组的版本。 uploadFile = remapJar // This links to a task that builds your mod jar and sets "uploadFile" to the mod jar. addGameVersion('1.16.2') // Any minecraft version. addLoader('fabric') // Can be fabric or forge. Modrinth will support liteloader and rift at a later date. }
WIP
zh_cn/tutorial/minotaur.1627067994.txt.gz · Last modified: 2021/07/23 19:19 by breakice