add Gradle task to upload the mod to the portal, and some gradle fixes
This commit is contained in:
parent
0f08eee56f
commit
b6b874d8f7
22 changed files with 723 additions and 273 deletions
|
|
@ -1,3 +1,4 @@
|
|||
import dev.adamko.kafkatorio.factoriomod.FactorioModPublishTask
|
||||
import dev.adamko.kafkatorio.gradle.asConsumer
|
||||
import dev.adamko.kafkatorio.gradle.asProvider
|
||||
import dev.adamko.kafkatorio.gradle.dropDirectories
|
||||
|
|
@ -50,7 +51,7 @@ val tsSrcDir: Directory = layout.projectDirectory.dir("src/main/typescript")
|
|||
|
||||
|
||||
node {
|
||||
nodeProjectDir.set(tsSrcDir)
|
||||
nodeProjectDir.set(layout.projectDirectory)
|
||||
}
|
||||
|
||||
|
||||
|
|
@ -115,6 +116,15 @@ tasks.distZip {
|
|||
}
|
||||
|
||||
|
||||
val publishMod by tasks.registering(FactorioModPublishTask::class) {
|
||||
distributionZip.set(tasks.distZip.flatMap { it.archiveFile })
|
||||
|
||||
val projectModName = project.extra.get("modName") as String
|
||||
modName.set(projectModName)
|
||||
modVersion.set(project.version.toString())
|
||||
}
|
||||
|
||||
|
||||
distributions {
|
||||
main {
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue