From 350d5e58601320d44c779412a6a3018660f28d34 Mon Sep 17 00:00:00 2001 From: Jeff Carr Date: Sat, 16 Nov 2024 00:05:07 -0600 Subject: [PATCH] fix makefile --- Makefile | 14 +++++++------- README.md | 2 +- argv.go | 2 +- main.go | 6 +++--- 4 files changed, 12 insertions(+), 12 deletions(-) diff --git a/Makefile b/Makefile index f758bec..73a473c 100644 --- a/Makefile +++ b/Makefile @@ -10,8 +10,8 @@ vet: @GO111MODULE=off go vet @echo this go library package builds okay -no-gui: build - ./go-deb --no-gui --repo go.wit.com/apps/autotypist +auto-build: build + ./go-deb --auto --repo go.wit.com/apps/autotypist build: -rm resources/*.so @@ -47,16 +47,16 @@ clean: -rm go-deb build-go-gui-toolkits: build - ./go-deb --release --no-gui --repo go.wit.com/apps/go-gui-toolkits + ./go-deb --release --auto --repo go.wit.com/apps/go-gui-toolkits build-test-failure: build - ./go-deb --release --no-gui --repo go.wit.com/apps/junk + ./go-deb --release --auto --repo go.wit.com/apps/junk build-test-keep-files: build - ./go-deb --no-gui --keep-files --repo go.wit.com/apps/go-deb + ./go-deb --auto --keep-files --repo go.wit.com/apps/go-deb build-release: - go-deb --release --no-gui --repo go.wit.com/apps/go-deb + go-deb --release --auto --repo go.wit.com/apps/go-deb debian: build - ./go-deb --no-gui --keep-files --repo go.wit.com/apps/go-deb + ./go-deb --auto --keep-files --repo go.wit.com/apps/go-deb diff --git a/README.md b/README.md index 480a4ad..3daef9a 100644 --- a/README.md +++ b/README.md @@ -4,7 +4,7 @@ Makes a debian package from a go git repository Usage (puts .deb in ~/incoming/) : -* go-deb --no-gui --repo go.wit.com/apps/go-clone +* go-deb --auto --repo go.wit.com/apps/go-clone Notes diff --git a/argv.go b/argv.go index db8134e..ca5b89f 100644 --- a/argv.go +++ b/argv.go @@ -15,7 +15,7 @@ import ( var argv args type args struct { - NoGui bool `arg:"--no-gui" help:"don't open the gui, just make the .deb"` + Auto bool `arg:"--auto" help:"automatically attempt to make the .deb"` Ldflags []string `arg:"--ldflags" help:"flags to pass to go build"` Repo string `arg:"--repo" help:"go get path to the repo"` PkgDir string `arg:"--pkg-dir" help:"set default directory (~/incoming/)"` diff --git a/main.go b/main.go index 26bc80a..06a96f7 100644 --- a/main.go +++ b/main.go @@ -35,10 +35,10 @@ func main() { os.Exit(0) } myGui = gui.New() - if !argv.NoGui { + if !argv.Auto { myGui.InitEmbed(resources) - myGui.Default() } + myGui.Default() basicWindow = makebasicWindow() @@ -72,7 +72,7 @@ func main() { log.Info("cd", cBox.status.Path()) os.Chdir(cBox.status.Path()) - if argv.NoGui { + if argv.Auto { shell.TestTerminalColor() // basicWindow.Show() // broken gui package. convert to protobuf if ok, err := cBox.buildPackage(); ok {