From dc4924306dc9ce261a2d9221a1974d79a27b0675 Mon Sep 17 00:00:00 2001 From: Jeff Carr Date: Fri, 1 Mar 2024 21:33:22 -0600 Subject: [PATCH] for some reason, needs ldflag each arg? --- buildPackage.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/buildPackage.go b/buildPackage.go index 2f1127f..a75634e 100644 --- a/buildPackage.go +++ b/buildPackage.go @@ -70,7 +70,7 @@ func (c *controlBox) buildPackage() error { os.Setenv("GO111MODULE", "off") vldflag := "-X main.VERSION=" + version gldflag := "-X main.GUIVERSION=" + version // todo: git this from the filesystem - if shell.Run([]string{"go", "build", "-v", "-x", "-ldflags", vldflag, gldflag}) { + if shell.Run([]string{"go", "build", "-v", "-x", "-ldflags", vldflag, "-ldflags", gldflag}) { log.Warn("go build worked") } else { return errors.New("go build") @@ -83,7 +83,7 @@ func (c *controlBox) buildPackage() error { } if shell.Exists("files") { - if !shell.Run([]string{"rm", "-rf", "files"}) { + if shell.Run([]string{"rm", "-rf", "files"}) { log.Warn("rm failed") return errors.New("rm files/") }