From 404006f8e4408da4d0e647c19312e07adeebaaaa Mon Sep 17 00:00:00 2001 From: Ampflower Date: Mon, 15 Jan 2024 03:42:36 -0600 Subject: [PATCH] Add updateJsonUrl in mods.toml --- build.gradle.kts | 3 ++- forge/src/main/resources/META-INF/mods.toml | 4 ++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/build.gradle.kts b/build.gradle.kts index a07f2a4..6dc298d 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -5,7 +5,7 @@ plugins { } val github: String by project - +val modrinthId: String by project allprojects { apply(plugin = "java") @@ -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)) diff --git a/forge/src/main/resources/META-INF/mods.toml b/forge/src/main/resources/META-INF/mods.toml index 672843a..21f353e 100644 --- a/forge/src/main/resources/META-INF/mods.toml +++ b/forge/src/main/resources/META-INF/mods.toml @@ -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 = '''