User Tools

Site Tools


zh_cn:tutorial:cursegradle

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
zh_cn:tutorial:cursegradle [2019/12/18 05:55] – created lightcolourzh_cn:tutorial:cursegradle [2021/07/30 12:35] (current) – external edit 127.0.0.1
Line 1: Line 1:
-====== Publishing mods on CurseForge with CurseGradle ======+====== 使用 CurseGradle 在 CurseForge 上发布 mod ======
  
-To familiarize yourself with CurseGradle, please read the [[https://github.com/matthewprenger/CurseGradle/wiki|project's official wiki]].+要了解 CurseGradle,请先看 [[https://github.com/matthewprenger/CurseGradle/wiki|项目的官方 wiki]]
  
-Note: in recent versions, it seems that the changes outlined in this article are not necessary and perhaps even harmful. +注:在最新版本中,本文概述的更改似乎没有必要,甚至可能有害。
  
-===== Fabric-specific changes =====+===== 特定于 Fabric 的更改 =====
  
-(Note: Last updated for Loom 0.2.5.)+(注:针对 Loom 0.2.5 进行了修订)
  
-The additions necessary for usage with Fabric have been highlighted in green. If you are using Loom 0.2.5 ''remapJar.output'' should be just ''remapJar'' instead.+使用 Fabric 的需要进行的改动已经用绿色高亮了。如果你用Loom 0.2.5''remapJar.out'' 应该换成 ''remapJar''
  
 {{:tutorial:cursegradle_changes.png?nolink|}} {{:tutorial:cursegradle_changes.png?nolink|}}
  
-They are, in order:+按顺序介绍:
  
-  * ''%%afterEvaluate { ... }%%'' Loom'remapJar tweaks currently happen after evaluation, and as such remapJar.output can only be read then, +  * ''%%afterEvaluate { ... }%%''——Loom 的 remapJar 调整(tweaks)目前在评估(evaluation)后发生,因此读取 remapJar.output 只能在那之后, 
-  * ''%%mainArtifact(remapJar)%%'' (or ''mainArtifact(remapJar.output)'' for Loom 0.2.4 and earlier) - the primary artifact submitted to CurseForge should be the output of remapJar, that is the remapped (production-ready) mod .JAR file, +  * ''%%mainArtifact(remapJar)%%''(或 Loom 0.2.4 及以前的 ''mainArtifact(remapJar.output)'')——提交到 CurseForge 的 mod 的主要生成文件应为 remapJar 任务的输出也就是重新混淆的(可直接用于玩家安装的)mod .JAR 文件, 
-  * ''%%uploadTask.dependsOn(remapJar)%%'' - make sure that the CurseForge upload task only runs once the remapped JAR has been built, +  * ''%%uploadTask.dependsOn(remapJar)%%''——确保 CurseForge 的上传任务只在重新混淆的 JAR 文件被构建出来后才执行, 
-  * ''%%forgeGradleIntegration = false%%'' - as you're not using ForgeGradle, that specific integration has to be disabled.+  * ''%%forgeGradleIntegration = false%%''——由于没有使用 ForgeGradle,相应的 integration 必须被禁用。
  
  
-Note: CurseGradle does not set the mod loader version to fabric and does not add java 10 to supported java versions even if you enable newer java version support.+你可以设置 Modloader 为 Fabric 并使用 addGameVersion 添加支持的 Java 版本。 
 +<code> 
 +addGameVersion "Fabric" // 设置 Modloader 为 Fabric 
 +addGameVersion "Java 8" 
 +addGameVersion "Java 11" 
 +</code>
  
  
zh_cn/tutorial/cursegradle.1576648505.txt.gz · Last modified: 2019/12/18 05:55 by lightcolour