fix makefile
This commit is contained in:
parent
ff564380a7
commit
350d5e5860
14
Makefile
14
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
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
2
argv.go
2
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/)"`
|
||||
|
|
6
main.go
6
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 {
|
||||
|
|
Loading…
Reference in New Issue