This commit is contained in:
Jeff Carr 2025-02-07 09:50:52 -06:00
parent 747956547b
commit 50e6b140db
2 changed files with 13 additions and 7 deletions

View File

@ -4,10 +4,17 @@ BUILDTIME = $(shell date +%Y.%m.%d)
all: build all: build
./control-panel-droplet ./control-panel-droplet
build: build: goimports vet
GO111MODULE=off go build \ GO111MODULE=off go build \
-ldflags "-X main.VERSION=${VERSION} -X main.BUILDTIME=${BUILDTIME} -X gui.GUIVERSION=${VERSION}" -ldflags "-X main.VERSION=${VERSION} -X main.BUILDTIME=${BUILDTIME} -X gui.GUIVERSION=${VERSION}"
goimports:
goimports -w *.go
vet:
@GO111MODULE=off go vet
@echo this go binary package builds okay
verbose: verbose:
GO111MODULE=off go build -v -x \ GO111MODULE=off go build -v -x \
-ldflags "-X main.VERSION=${VERSION} -X main.BUILDTIME=${BUILDTIME} -X gui.GUIVERSION=${VERSION}" -ldflags "-X main.VERSION=${VERSION} -X main.BUILDTIME=${BUILDTIME} -X gui.GUIVERSION=${VERSION}"
@ -17,10 +24,9 @@ install:
-ldflags "-X main.VERSION=${VERSION} -X main.BUILDTIME=${BUILDTIME} -X gui.GUIVERSION=${VERSION}" -ldflags "-X main.VERSION=${VERSION} -X main.BUILDTIME=${BUILDTIME} -X gui.GUIVERSION=${VERSION}"
clean: clean:
-rm -f control-panel-droplet -rm -f control-panel-droplet go.*
redomod: redomod:
rm -f go.*
GO111MODULE= go mod init GO111MODULE= go mod init
GO111MODULE= go mod tidy GO111MODULE= go mod tidy

View File

@ -4,10 +4,10 @@ import (
"os" "os"
"time" "time"
"go.wit.com/log"
"go.wit.com/gui" "go.wit.com/gui"
"go.wit.com/lib/debugger" "go.wit.com/lib/debugger"
"go.wit.com/lib/gui/digitalocean" "go.wit.com/lib/gui/digitalocean"
"go.wit.com/log"
) )
var title string = "Droplet Control Panel" var title string = "Droplet Control Panel"