Skip to content

Commit

Permalink
build: remove workshopDir
Browse files Browse the repository at this point in the history
cannot handle empty string
  • Loading branch information
scarf005 committed Mar 11, 2024
1 parent bd3df92 commit d877a47
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 3 deletions.
12 changes: 11 additions & 1 deletion build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,19 @@ val modTheSpireId = 1605060445
/** [workshop link](https://steamcommunity.com/sharedfiles/filedetails?id=2902980404) */
val marisaModId = 2902980404

val workShopDir = project.properties["workshopDir"] ?: "$userSteamDir/workshop/content/$gameSteamId"
val workShopDir = "$userSteamDir/workshop/content/$gameSteamId"
val modTheSpireDir = "$workShopDir/$modTheSpireId"
val basemodDir = "$workShopDir/$baseModId"

println(
"""
userSteamDir: $userSteamDir
gameDir: $gameDir
basemodDir: $basemodDir
modTheSpireDir: $modTheSpireDir
""".trimIndent()
)

buildscript {
repositories { mavenCentral() }

Expand Down Expand Up @@ -136,6 +145,7 @@ tasks.jar {

dependsOn("modthespire")
from(sourceSets.main.get().output)
println("built jar!")
}

tasks.register("hardlink") {
Expand Down
2 changes: 0 additions & 2 deletions gradle.properties.example
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,3 @@ org.gradle.parallel=true
kotlin.experimental.tryK2=true
# fill in your steam directory ending with '/steamapps'
userSteamDir=
# default: "$userSteamDir/workshop/content/$gameSteamId"
workshopDir=

0 comments on commit d877a47

Please sign in to comment.