PlumyGames / mgpp

The next generation of Mindustry modding.
https://plumygames.github.io/mgpp/
GNU General Public License v3.0
48 stars 3 forks source link

[Feature Request] Support Foo's Client #15

Closed liplum closed 1 year ago

liplum commented 2 years ago

Please support Foo's Client. Kinda like this, in build.gradle.kts

mindustry {
    client {
        mindustry foo "v8" // or latest notation
        // or
        mindustry fooV7 "1105" // or latest notation
    }
}
liplum commented 2 years ago

It's pretty troublesome because foo's client doesn't have a good convention for version management. There is likely no stable way to retreive the jar file.

liplum commented 2 years ago

Since mgpp v1.1.1 Despite the unstable download convention of Foo's Client, this could work and you have got to configure it manually if it is changed.

liplum commented 2 years ago

I introuduced an easy way to add Foo's Client in 54f67c9

liplum commented 1 year ago

MGPP v2.0.0

Since mgpp v2.0.0, you can use this in build.gradle(.kts) to add a Foo's Client slot.

Kotlin DSL

runMindustry {
   addClient {
       fooClient(tag = "v8.0.0", file = "erekir-client.jar")
   }
}

Groovy DSL

runMindustry {
   addClient {
       fooClient tag: "v8.0.0", file: "erekir-client.jar"
   }
}