From e153dcd85fb27ee6852a9ae28ce2dc1b6b742960 Mon Sep 17 00:00:00 2001 From: hub Date: Sun, 4 Sep 2022 00:55:41 +0200 Subject: [PATCH] quilt and spigot build on demand --- cmd/server.go | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/cmd/server.go b/cmd/server.go index de6e0b5..b59acc1 100644 --- a/cmd/server.go +++ b/cmd/server.go @@ -7,6 +7,7 @@ import ( "github.com/nothub/mrpack-install/server" "github.com/spf13/cobra" "log" + "os" ) func init() { @@ -66,6 +67,12 @@ 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{ @@ -73,6 +80,13 @@ var serverCmd = &cobra.Command{ 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!") }