Compare commits

...

7 Commits

Author SHA1 Message Date
Jeff Carr b3f63523b4 try to make this work again 2025-09-11 17:42:23 -05:00
Jeff Carr 3b559eff7e minor 2025-09-11 14:21:28 -05:00
Jeff Carr b46996bac2 common forge.Init() 2025-09-11 04:46:40 -05:00
Jeff Carr 8e67e31bbe new init & config() 2025-09-11 03:36:31 -05:00
Jeff Carr b3dc0e265e standard locations for everything 2025-03-12 13:18:11 -05:00
Jeff Carr 953a1cd5d5 empty this before rebuilding 2025-02-15 12:32:04 -06:00
Jeff Carr 7396af67a1 fixes for new gitpb 2024-12-17 07:09:22 -06:00
5 changed files with 42 additions and 21 deletions

View File

@ -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 \
@ -25,3 +27,4 @@ goimports:
clean: clean:
rm -f ~/go/lib/go-gui/*.so rm -f ~/go/lib/go-gui/*.so
go-mod-clean purge

8
build
View File

@ -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 mkdir -p files/usr/lib/go-gui-toolkits
cp ~/go/lib/go-gui/*.so files/usr/lib/go-gui/ cp -a ~/go/lib/go-gui/*.so files/usr/lib/go-gui-toolkits/

View File

@ -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

18
exit.go Normal file
View File

@ -0,0 +1,18 @@
package main
import (
"os"
"go.wit.com/log"
)
func okExit(thing string) {
log.Info(thing, "ok")
// log.Info("Finished go-clean on", check.GetGoPath(), "ok")
os.Exit(0)
}
func badExit(err error) {
log.Info("go-gui-toolkits failed: ", err)
os.Exit(-1)
}

23
main.go
View File

@ -2,29 +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.SortByGoPath()
for all.Scan() {
check := all.Next()
repotype := check.RepoType() cmd := []string{"make", "install"}
if repotype != "plugin" { if repo := forge.Repos.FindByNamespace("go.wit.com/toolkits/gocui"); repo != nil {
continue repo.RunVerbose(cmd)
} }
if forge.Config.IsReadOnly(check.GoPath) { if repo := forge.Repos.FindByNamespace("go.wit.com/toolkits/andlabs"); repo != nil {
// ignore read only stuff repo.RunVerbose(cmd)
continue
} }
log.Info("STARTING 'make install' in", check.GoPath) if repo := forge.Repos.FindByNamespace("go.wit.com/toolkits/nocui"); repo != nil {
if err := forge.Install(check, nil); err != nil { repo.RunVerbose(cmd)
log.Warn("INSTALL FAILED", check.GoPath, err)
} }
if repo := forge.Repos.FindByNamespace("go.wit.com/toolkits/fyne"); repo != nil {
repo.RunVerbose(cmd)
} }
} }