Skip to content

Commit

Permalink
better curseforge version splitting
Browse files Browse the repository at this point in the history
  • Loading branch information
fzzyhmstrs committed Dec 7, 2024
1 parent 2c5d370 commit cb99130
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -292,6 +292,7 @@ if (System.getenv("MODRINTH_TOKEN") != null) {
if (System.getenv("CURSEFORGE_TOKEN") != null) {
curseforge {
val releaseType: String by project
val mcVersions: String by project
val mcCurseVersions: String by project
val uploadDebugMode: String by project

Expand All @@ -301,7 +302,8 @@ if (System.getenv("CURSEFORGE_TOKEN") != null) {
changelog = log
changelogType = "markdown"
this.releaseType = releaseType
for (ver in mcCurseVersions.split(",")){
val v = if (mcCurseVersions.isEmpty()) mcVersions else mcCurseVersions
for (ver in v.split(",")) {
addGameVersion(ver)
}
addGameVersion("Fabric")
Expand Down

0 comments on commit cb99130

Please sign in to comment.