Skip to content

Commit

Permalink
Add updateJsonUrl in mods.toml
Browse files Browse the repository at this point in the history
  • Loading branch information
Ampflower committed Jan 15, 2024
1 parent fa29549 commit 404006f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
3 changes: 2 additions & 1 deletion build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ plugins {
}

val github: String by project

val modrinthId: String by project

allprojects {
apply(plugin = "java")
Expand Down Expand Up @@ -61,6 +61,7 @@ allprojects {
"issues" to "$github/issues",
"description" to project.description,
"projectVersion" to meta.projectVersion,
"modrinthId" to modrinthId,
"forgeRequired" to libs.versions.forge.loader.get().let {
val s = it.indexOf('-') + 1
it.substring(s, it.indexOf('.', s))
Expand Down
4 changes: 4 additions & 0 deletions forge/src/main/resources/META-INF/mods.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,11 @@ modId = "genflower"
version = "${version}"
displayName = "Genflower"

updateJSONURL = "https://api.modrinth.com/updates/${modrinthId}/forge_updates.json"

logoFile = "assets/genflower/pack.png"
logoBlur = false

displayURL = "https://mod.ampflower.gay/genflower"

description = '''
Expand Down

0 comments on commit 404006f

Please sign in to comment.