2024-02-11 01:00:05 -06:00
|
|
|
.PHONY: debian
|
|
|
|
|
2024-11-07 07:03:13 -06:00
|
|
|
VERSION = $(shell git describe --tags)
|
|
|
|
|
2024-02-11 01:00:05 -06:00
|
|
|
run: build
|
2024-02-11 21:49:39 -06:00
|
|
|
./go-deb --repo go.wit.com/apps/autotypist
|
2024-02-11 06:32:48 -06:00
|
|
|
|
2024-03-02 15:58:56 -06:00
|
|
|
vet:
|
|
|
|
@GO111MODULE=off go vet
|
|
|
|
@echo this go library package builds okay
|
|
|
|
|
2024-02-11 13:58:07 -06:00
|
|
|
no-gui: build
|
2024-02-11 21:49:39 -06:00
|
|
|
./go-deb --no-gui --repo go.wit.com/apps/autotypist
|
2024-02-11 13:58:07 -06:00
|
|
|
|
2024-02-11 01:00:05 -06:00
|
|
|
build:
|
2024-11-06 16:02:11 -06:00
|
|
|
-rm resources/*.so
|
2024-11-07 07:03:13 -06:00
|
|
|
touch resources/blank.so
|
2024-11-06 16:24:35 -06:00
|
|
|
# embed the andlabs plugin
|
|
|
|
-cp -a ~/go/src/go.wit.com/toolkits/andlabs.so resources/
|
2024-11-07 07:03:13 -06:00
|
|
|
GO111MODULE="off" go build -v \
|
|
|
|
-ldflags "-X main.VERSION=${VERSION} -X gui.GUIVERSION=${VERSION}"
|
2024-02-11 01:00:05 -06:00
|
|
|
|
2024-02-20 23:13:26 -06:00
|
|
|
install:
|
2024-11-07 07:03:13 -06:00
|
|
|
GO111MODULE="off" go install -v \
|
|
|
|
-ldflags "-X main.VERSION=${VERSION} -X gui.GUIVERSION=${VERSION}"
|
2024-02-20 23:13:26 -06:00
|
|
|
|
2024-02-11 01:00:05 -06:00
|
|
|
goimports:
|
|
|
|
goimports -w *.go
|
|
|
|
|
|
|
|
redomod:
|
|
|
|
rm -f go.*
|
|
|
|
GO111MODULE= go mod init
|
|
|
|
GO111MODULE= go mod tidy
|
|
|
|
|
|
|
|
reset:
|
|
|
|
# clear your terminal
|
|
|
|
reset
|
|
|
|
|
|
|
|
gocui: build
|
|
|
|
reset
|
|
|
|
./go-deb --gui gocui >/tmp/witgui.log.stderr 2>&1
|
|
|
|
|
|
|
|
nocui: reset build
|
|
|
|
./go-deb --gui nocui
|
|
|
|
|
|
|
|
clean:
|
|
|
|
-rm go-deb
|
2024-02-20 23:13:26 -06:00
|
|
|
|
2024-02-21 21:33:01 -06:00
|
|
|
build-go-gui-toolkits: build
|
|
|
|
./go-deb --release --no-gui --repo go.wit.com/apps/go-gui-toolkits
|
2024-02-21 15:26:03 -06:00
|
|
|
|
2024-02-23 22:07:13 -06:00
|
|
|
build-test-failure: build
|
|
|
|
./go-deb --release --no-gui --repo go.wit.com/apps/junk
|
|
|
|
|
2024-11-06 15:52:43 -06:00
|
|
|
build-test-keep-files: build
|
|
|
|
./go-deb --no-gui --keep-files --repo go.wit.com/apps/go-deb
|
|
|
|
|
2024-02-20 23:13:26 -06:00
|
|
|
build-all:
|
2024-11-07 07:03:13 -06:00
|
|
|
go-deb --no-gui --repo go.wit.com/apps/go-deb
|
|
|
|
go-deb --no-gui --repo go.wit.com/apps/go-clone
|
|
|
|
go-deb --no-gui --repo go.wit.com/apps/autotypist
|
|
|
|
go-deb --no-gui --repo go.wit.com/apps/virtigoctl
|
|
|
|
go-deb --no-gui --repo go.wit.com/apps/virtigo
|
2024-02-20 23:13:26 -06:00
|
|
|
go-deb --no-gui --repo go.wit.com/apps/autotypist
|
|
|
|
go-deb --no-gui --repo go.wit.com/apps/guireleaser
|
2024-11-07 07:03:13 -06:00
|
|
|
go-deb --no-gui --repo go.wit.com/apps/gowebd
|
|
|
|
go-deb --no-gui --repo go.wit.com/apps/networkQuality
|
|
|
|
go-deb --no-gui --repo go.wit.com/apps/helloworld
|
|
|
|
go-deb --no-gui --repo go.wit.com/apps/basicwindow
|
|
|
|
go-deb --no-gui --repo go.wit.com/apps/gadgetwindow
|
|
|
|
go-deb --no-gui --repo go.wit.com/apps/powerpaneld
|
|
|
|
go-deb --no-gui --repo go.wit.com/lib/daemons/virtigod
|
2024-02-20 23:13:26 -06:00
|
|
|
go-deb --no-gui --repo go.wit.com/apps/control-panel-cloudflare
|
|
|
|
go-deb --no-gui --repo go.wit.com/apps/control-panel-dns
|
2024-11-07 07:03:13 -06:00
|
|
|
go-deb --no-gui --repo go.wit.com/apps/control-panel-droplet
|
|
|
|
go-deb --no-gui --repo go.wit.com/apps/control-panel-vpn
|
|
|
|
# go-deb --no-gui --repo golang.org/x/tools/cmd/goimports
|
2024-02-20 23:13:26 -06:00
|
|
|
|
|
|
|
build-releases:
|
2024-03-01 07:44:02 -06:00
|
|
|
-go-deb --release --no-gui --repo go.wit.com/apps/autotypist
|
|
|
|
-go-deb --release --no-gui --repo go.wit.com/apps/control-panel-dns
|
|
|
|
-go-deb --release --no-gui --repo go.wit.com/apps/control-panel-digitalocean
|
|
|
|
-go-deb --release --no-gui --repo go.wit.com/apps/control-panel-cloudflare
|
|
|
|
-go-deb --release --no-gui --repo go.wit.com/apps/control-panel-vpn
|
|
|
|
-go-deb --release --no-gui --repo go.wit.com/apps/go-gui-toolkits
|
|
|
|
-go-deb --release --no-gui --repo go.wit.com/apps/guireleaser
|
|
|
|
-go-deb --release --no-gui --repo go.wit.com/apps/go.wit.com
|
|
|
|
-go-deb --release --no-gui --repo go.wit.com/apps/helloworld
|
|
|
|
-go-deb --release --no-gui --repo go.wit.com/apps/go-deb
|
2024-10-12 19:43:47 -05:00
|
|
|
|
2024-11-06 16:22:41 -06:00
|
|
|
debian: build
|
|
|
|
./go-deb --no-gui --keep-files --repo go.wit.com/apps/go-deb
|