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/") }