try to make this work again
This commit is contained in:
parent
3b559eff7e
commit
b3f63523b4
6
Makefile
6
Makefile
|
@ -4,8 +4,10 @@ VERSION = $(shell git describe --tags)
|
||||||
BUILDTIME = $(shell date +%Y.%m.%d)
|
BUILDTIME = $(shell date +%Y.%m.%d)
|
||||||
|
|
||||||
all: build
|
all: build
|
||||||
./go-gui-toolkits
|
-rm -f go-gui*.deb
|
||||||
ls -l ~/go/lib/go-gui/
|
go-deb --gui andlabs gui
|
||||||
|
#./go-gui-toolkits
|
||||||
|
#ls -l ~/go/lib/go-gui/
|
||||||
|
|
||||||
build: goimports
|
build: goimports
|
||||||
GO111MODULE=off go build \
|
GO111MODULE=off go build \
|
||||||
|
|
4
build
4
build
|
@ -1,6 +1,8 @@
|
||||||
#!/bin/bash -x
|
#!/bin/bash -x
|
||||||
|
|
||||||
# make build
|
rm -rf ~/go/lib/*
|
||||||
|
go-gui-toolkits
|
||||||
|
ls -lt ~/go/lib/
|
||||||
|
|
||||||
mkdir -p files/usr/lib/go-gui-toolkits
|
mkdir -p files/usr/lib/go-gui-toolkits
|
||||||
cp -a ~/go/lib/go-gui/*.so files/usr/lib/go-gui-toolkits/
|
cp -a ~/go/lib/go-gui/*.so files/usr/lib/go-gui-toolkits/
|
||||||
|
|
1
control
1
control
|
@ -1,3 +1,4 @@
|
||||||
|
Package: go-gui-toolkits
|
||||||
Maintainer: Jeff Carr <jcarr@wit.com>
|
Maintainer: Jeff Carr <jcarr@wit.com>
|
||||||
Depends:
|
Depends:
|
||||||
Architecture: amd64
|
Architecture: amd64
|
||||||
|
|
28
main.go
28
main.go
|
@ -2,30 +2,26 @@ package main
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"go.wit.com/lib/protobuf/forgepb"
|
"go.wit.com/lib/protobuf/forgepb"
|
||||||
"go.wit.com/log"
|
|
||||||
)
|
)
|
||||||
|
|
||||||
// go will sit here until the window exits
|
// go will sit here until the window exits
|
||||||
func main() {
|
func main() {
|
||||||
forge := forgepb.Init()
|
forge := forgepb.Init()
|
||||||
|
|
||||||
all := forge.Repos.SortByFullPath()
|
cmd := []string{"make", "install"}
|
||||||
for all.Scan() {
|
if repo := forge.Repos.FindByNamespace("go.wit.com/toolkits/gocui"); repo != nil {
|
||||||
check := all.Next()
|
repo.RunVerbose(cmd)
|
||||||
|
}
|
||||||
|
|
||||||
repotype := check.GetRepoType()
|
if repo := forge.Repos.FindByNamespace("go.wit.com/toolkits/andlabs"); repo != nil {
|
||||||
if repotype != "plugin" {
|
repo.RunVerbose(cmd)
|
||||||
continue
|
}
|
||||||
}
|
|
||||||
|
|
||||||
if forge.Config.IsReadOnly(check.GetGoPath()) {
|
if repo := forge.Repos.FindByNamespace("go.wit.com/toolkits/nocui"); repo != nil {
|
||||||
// ignore read only stuff
|
repo.RunVerbose(cmd)
|
||||||
continue
|
}
|
||||||
}
|
|
||||||
|
|
||||||
log.Info("STARTING 'make install' in", check.GetGoPath())
|
if repo := forge.Repos.FindByNamespace("go.wit.com/toolkits/fyne"); repo != nil {
|
||||||
if err := forge.Install(check, nil); err != nil {
|
repo.RunVerbose(cmd)
|
||||||
log.Warn("INSTALL FAILED", check.GetGoPath(), err)
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue