fix makefile
This commit is contained in:
parent
ff564380a7
commit
350d5e5860
14
Makefile
14
Makefile
|
@ -10,8 +10,8 @@ vet:
|
||||||
@GO111MODULE=off go vet
|
@GO111MODULE=off go vet
|
||||||
@echo this go library package builds okay
|
@echo this go library package builds okay
|
||||||
|
|
||||||
no-gui: build
|
auto-build: build
|
||||||
./go-deb --no-gui --repo go.wit.com/apps/autotypist
|
./go-deb --auto --repo go.wit.com/apps/autotypist
|
||||||
|
|
||||||
build:
|
build:
|
||||||
-rm resources/*.so
|
-rm resources/*.so
|
||||||
|
@ -47,16 +47,16 @@ clean:
|
||||||
-rm go-deb
|
-rm go-deb
|
||||||
|
|
||||||
build-go-gui-toolkits: build
|
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
|
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
|
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:
|
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
|
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/) :
|
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
|
Notes
|
||||||
|
|
||||||
|
|
2
argv.go
2
argv.go
|
@ -15,7 +15,7 @@ import (
|
||||||
var argv args
|
var argv args
|
||||||
|
|
||||||
type args struct {
|
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"`
|
Ldflags []string `arg:"--ldflags" help:"flags to pass to go build"`
|
||||||
Repo string `arg:"--repo" help:"go get path to the repo"`
|
Repo string `arg:"--repo" help:"go get path to the repo"`
|
||||||
PkgDir string `arg:"--pkg-dir" help:"set default directory (~/incoming/)"`
|
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)
|
os.Exit(0)
|
||||||
}
|
}
|
||||||
myGui = gui.New()
|
myGui = gui.New()
|
||||||
if !argv.NoGui {
|
if !argv.Auto {
|
||||||
myGui.InitEmbed(resources)
|
myGui.InitEmbed(resources)
|
||||||
myGui.Default()
|
|
||||||
}
|
}
|
||||||
|
myGui.Default()
|
||||||
|
|
||||||
basicWindow = makebasicWindow()
|
basicWindow = makebasicWindow()
|
||||||
|
|
||||||
|
@ -72,7 +72,7 @@ func main() {
|
||||||
log.Info("cd", cBox.status.Path())
|
log.Info("cd", cBox.status.Path())
|
||||||
os.Chdir(cBox.status.Path())
|
os.Chdir(cBox.status.Path())
|
||||||
|
|
||||||
if argv.NoGui {
|
if argv.Auto {
|
||||||
shell.TestTerminalColor()
|
shell.TestTerminalColor()
|
||||||
// basicWindow.Show() // broken gui package. convert to protobuf
|
// basicWindow.Show() // broken gui package. convert to protobuf
|
||||||
if ok, err := cBox.buildPackage(); ok {
|
if ok, err := cBox.buildPackage(); ok {
|
||||||
|
|
Loading…
Reference in New Issue