fix build
This commit is contained in:
parent
2da89882e5
commit
0383207f72
20
Makefile
20
Makefile
|
@ -1,10 +1,24 @@
|
||||||
.PHONY: debian
|
.PHONY: debian
|
||||||
|
|
||||||
|
VERSION = $(shell git describe --tags)
|
||||||
|
BUILDTIME = $(shell date +%Y.%m.%d)
|
||||||
|
|
||||||
all: build debian
|
all: build
|
||||||
# GO111MODULE=off go build -o build main.go
|
@echo fixme
|
||||||
|
|
||||||
build: nocui gocui andlabs
|
build:
|
||||||
|
GO111MODULE=off go build \
|
||||||
|
-ldflags "-X main.VERSION=${VERSION} -X main.BUILDTIME=${BUILDTIME} -X gui.GUIVERSION=${VERSION}"
|
||||||
|
|
||||||
|
verbose:
|
||||||
|
GO111MODULE=off go build -v -x \
|
||||||
|
-ldflags "-X main.VERSION=${VERSION} -X main.BUILDTIME=${BUILDTIME} -X gui.GUIVERSION=${VERSION}"
|
||||||
|
|
||||||
|
install:
|
||||||
|
GO111MODULE=off go install \
|
||||||
|
-ldflags "-X main.VERSION=${VERSION} -X main.BUILDTIME=${BUILDTIME} -X gui.GUIVERSION=${VERSION}"
|
||||||
|
|
||||||
|
build:
|
||||||
|
|
||||||
goimports:
|
goimports:
|
||||||
goimports -w *.go
|
goimports -w *.go
|
||||||
|
|
2
main.go
2
main.go
|
@ -10,7 +10,7 @@ var myGui *gui.Node // This is the beginning of the binary tree of widgets
|
||||||
// go will sit here until the window exits
|
// go will sit here until the window exits
|
||||||
func main() {
|
func main() {
|
||||||
myGui = gui.New().Default()
|
myGui = gui.New().Default()
|
||||||
myGui.LoadToolkit("nocui")
|
// myGui.LoadToolkit("nocui")
|
||||||
|
|
||||||
buildworld()
|
buildworld()
|
||||||
gui.Watchdog()
|
gui.Watchdog()
|
||||||
|
|
Loading…
Reference in New Issue