diff options
author | HimbeerserverDE <himbeerserverde@gmail.com> | 2023-11-26 15:17:49 +0100 |
---|---|---|
committer | HimbeerserverDE <himbeerserverde@gmail.com> | 2023-11-26 15:17:49 +0100 |
commit | 6e3ac6889f8fb25bcd4b4468745dc84c487d7a6e (patch) | |
tree | c14dbc0838b879968095f23653f5ad4ee258b120 | |
parent | 14cb7cace94190e475db1b2833dd9d7ba116e63f (diff) |
mt-build-plugin: actually do a build
-rw-r--r-- | cmd/mt-build-plugin/build.go | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/cmd/mt-build-plugin/build.go b/cmd/mt-build-plugin/build.go index b316c04..6364acc 100644 --- a/cmd/mt-build-plugin/build.go +++ b/cmd/mt-build-plugin/build.go @@ -9,6 +9,7 @@ package main import ( "log" + "os/exec" proxy "github.com/HimbeerserverDE/mt-multiserver-proxy" ) @@ -20,4 +21,14 @@ func main() { } log.Println("version:", version) + + pathVer := "github.com/HimbeerserverDE/mt-multiserver-proxy@" + version + + if err := exec.Command("go", "get", "-u", pathVer); err != nil { + log.Fatalln("error updating proxy dependency:", err) + } + + if err := exec.Command("go", "build", "-buildmode=plugin"); err != nil { + log.Fatalln("error building plugin:", err) + } } |