summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Makefile6
-rw-r--r--main.go9
2 files changed, 11 insertions, 4 deletions
diff --git a/Makefile b/Makefile
index 466b07b..9a2b36d 100644
--- a/Makefile
+++ b/Makefile
@@ -4,8 +4,8 @@ VERSION = $(shell git describe --tags)
BUILDTIME = $(shell date +%Y.%m.%d)
all: build
- -rm -f go-gui*.deb
- go-deb --gui andlabs gui
+ -rm -f *.deb
+ # go-deb --gui andlabs gui
#./go-gui-toolkits
#ls -l ~/go/lib/go-gui/
@@ -22,7 +22,7 @@ install:
-ldflags "-X main.VERSION=${VERSION} -X main.BUILDTIME=${BUILDTIME} -X gui.GUIVERSION=${VERSION}"
debian:
- rm -f go-gui-tool*
+ rm -f go-gui-tool* *.deb
go-deb --dir ~/incoming/
goimports:
diff --git a/main.go b/main.go
index e506b22..44e6989 100644
--- a/main.go
+++ b/main.go
@@ -1,12 +1,19 @@
package main
import (
+ "os"
+
"go.wit.com/lib/protobuf/forgepb"
+ "go.wit.com/log"
)
// go will sit here until the window exits
func main() {
- forge := forgepb.Init()
+ forge, err := forgepb.Init()
+ if err != nil {
+ log.Info("forge not installed", err)
+ os.Exit(-1)
+ }
cmd := []string{"make", "install"}
if repo := forge.Repos.FindByNamespace("go.wit.com/toolkits/gocui"); repo != nil {