diff --git a/body.txt b/body.txt new file mode 100644 index 0000000..939b308 --- /dev/null +++ b/body.txt @@ -0,0 +1,8 @@ +Architectury Templates can be used for setting your own architectury projects, for converting your existing projects to architectury projects, please refer to [Architectury Example Mod](https://github.com/architectury/architectury-example-mod) instead. + +The following templates are offered in [Creative Commons Zero v1.0 Universal](https://github.com/architectury/architectury-example-mod/blob/1.17.1/LICENSE), TL;DR: You can do anything (except somethings) with these templates. + +Architectury API is added to the templates by default, there are instructions on how to remove them within the buildscripts, depending on the API is **not required** to use the Architectury toolchain. + +**Documentation:** [https://docs.architectury.dev/](https://docs.architectury.dev/) +**Discord:** [https://discord.gg/C2RdJDpRBP](https://discord.gg/C2RdJDpRBP) \ No newline at end of file diff --git a/build.gradle b/build.gradle index 3f81069..cd12706 100644 --- a/build.gradle +++ b/build.gradle @@ -18,6 +18,7 @@ task run(type: JavaExec, dependsOn: jar) { mainClass = "dev.architectury.templates.GenerateTemplatesKt" environment "CONFIG_PATH", file("generator.config.json").absolutePath environment "OUTPUT_PATH", file("build/templates").absolutePath + environment "BODY_PATH", file("body.txt").absolutePath environment "PUBLISH", "true" environment "GITHUB_TOKEN", System.getenv("GITHUB_TOKEN") environment "GITHUB_REPOSITORY", System.getenv("GITHUB_REPOSITORY") diff --git a/src/main/kotlin/dev/architectury/templates/GenerateTemplates.kt b/src/main/kotlin/dev/architectury/templates/GenerateTemplates.kt index 46fc442..83d90de 100644 --- a/src/main/kotlin/dev/architectury/templates/GenerateTemplates.kt +++ b/src/main/kotlin/dev/architectury/templates/GenerateTemplates.kt @@ -36,13 +36,7 @@ fun main() { val repository = github.getRepository(System.getenv("GITHUB_REPOSITORY")) githubRelease = repository.createRelease("release_" + System.getenv("GITHUB_JOB")) .name("Architectury Templates") - .body(""" - |Architectury Templates can be used for setting your own architectury projects, for converting your existing projects to architectury projects, please refer to [Architectury Example Mod](https://github.com/architectury/architectury-example-mod) instead. - | - |The following templates are offered in [Creative Commons Zero v1.0 Universal](https://github.com/architectury/architectury-example-mod/blob/1.17.1/LICENSE), TL;DR: You can do anything with these templates. - | - |Architectury API is added to the templates by default, there are instructions on how to remove them within the buildscripts, depending on the API is **not required** to use the Architectury toolchain. - """.trimMargin()) + .body(Paths.get(System.getenv("BODY_PATH")).toFile().readText()) .create() } config.versions.forEach { (id, entry) ->