This commit is contained in:
kolaente 2020-08-31 22:39:46 +02:00
parent a9f59c0ab3
commit 26ff6ec7a4
Signed by: konrad
GPG Key ID: F40E70337AB24C9B
1 changed files with 2 additions and 0 deletions

View File

@ -192,12 +192,14 @@ func Lint() {
// Generates static content into the final binary
func Generate() error {
// TODO: use runAndStreamOutput
return exec.Command("go", "generate", PACKAGE+"/pkg/static").Run()
}
// Builds a vikunja binary, ready to run.
func Build() error {
mg.Deps(Generate)
// TODO: use runAndStreamOutput
cmd := exec.Command("go", "build", Goflags[0], "-tags", Tags, "-ldflags", "-s -w "+Ldflags, "-o", Executable)
fmt.Println(cmd.String())
out, err := cmd.CombinedOutput()