Skip to content

Commit

Permalink
quilt and spigot build on demand
Browse files Browse the repository at this point in the history
  • Loading branch information
nothub committed Sep 3, 2022
1 parent b83f1ca commit e153dcd
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions cmd/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import (
"github.com/nothub/mrpack-install/server"
"github.com/spf13/cobra"
"log"
"os"
)

func init() {
Expand Down Expand Up @@ -66,13 +67,26 @@ var serverCmd = &cobra.Command{
case "forge":
log.Fatalln("Not yet implemented!")
case "quilt":
err = os.MkdirAll("work/quilt", 0755)
if err != nil {
log.Fatalln(err)
}
// download https://maven.quiltmc.org/repository/release/org/quiltmc/quilt-installer/latest/quilt-installer-latest.jar
// java -jar quilt-installer-latest.jar install server ${minecraftVersion} --download-server
log.Fatalln("Not yet implemented!")
case "paper":
supplier = &server.Paper{
MinecraftVersion: minecraftVersion,
PaperVersion: loaderVersion,
}
case "spigot":
err = os.MkdirAll("work/spigot", 0755)
if err != nil {
log.Fatalln(err)
}
// download https://hub.spigotmc.org/jenkins/job/BuildTools/lastSuccessfulBuild/artifact/target/BuildTools.jar
// git config --global --unset core.autocrlf
// java -jar BuildTools.jar --rev ${minecraftVersion}
log.Fatalln("Not yet implemented!")
}

Expand Down

0 comments on commit e153dcd

Please sign in to comment.