From b3f63523b44eed5c3428827d6cb7f69110bdaa8d Mon Sep 17 00:00:00 2001 From: Jeff Carr Date: Thu, 11 Sep 2025 17:42:23 -0500 Subject: [PATCH] try to make this work again --- Makefile | 6 ++++-- build | 4 +++- control | 1 + main.go | 28 ++++++++++++---------------- 4 files changed, 20 insertions(+), 19 deletions(-) diff --git a/Makefile b/Makefile index 856a52b..2b3f82b 100644 --- a/Makefile +++ b/Makefile @@ -4,8 +4,10 @@ VERSION = $(shell git describe --tags) BUILDTIME = $(shell date +%Y.%m.%d) all: build - ./go-gui-toolkits - ls -l ~/go/lib/go-gui/ + -rm -f go-gui*.deb + go-deb --gui andlabs gui + #./go-gui-toolkits + #ls -l ~/go/lib/go-gui/ build: goimports GO111MODULE=off go build \ diff --git a/build b/build index 8e395cb..56576fc 100755 --- a/build +++ b/build @@ -1,6 +1,8 @@ #!/bin/bash -x -# make build +rm -rf ~/go/lib/* +go-gui-toolkits +ls -lt ~/go/lib/ mkdir -p files/usr/lib/go-gui-toolkits cp -a ~/go/lib/go-gui/*.so files/usr/lib/go-gui-toolkits/ diff --git a/control b/control index 7b76e22..3d18ecc 100644 --- a/control +++ b/control @@ -1,3 +1,4 @@ +Package: go-gui-toolkits Maintainer: Jeff Carr Depends: Architecture: amd64 diff --git a/main.go b/main.go index b8e6ab0..e506b22 100644 --- a/main.go +++ b/main.go @@ -2,30 +2,26 @@ package main import ( "go.wit.com/lib/protobuf/forgepb" - "go.wit.com/log" ) // go will sit here until the window exits func main() { forge := forgepb.Init() - all := forge.Repos.SortByFullPath() - for all.Scan() { - check := all.Next() + cmd := []string{"make", "install"} + if repo := forge.Repos.FindByNamespace("go.wit.com/toolkits/gocui"); repo != nil { + repo.RunVerbose(cmd) + } - repotype := check.GetRepoType() - if repotype != "plugin" { - continue - } + if repo := forge.Repos.FindByNamespace("go.wit.com/toolkits/andlabs"); repo != nil { + repo.RunVerbose(cmd) + } - if forge.Config.IsReadOnly(check.GetGoPath()) { - // ignore read only stuff - continue - } + if repo := forge.Repos.FindByNamespace("go.wit.com/toolkits/nocui"); repo != nil { + repo.RunVerbose(cmd) + } - log.Info("STARTING 'make install' in", check.GetGoPath()) - if err := forge.Install(check, nil); err != nil { - log.Warn("INSTALL FAILED", check.GetGoPath(), err) - } + if repo := forge.Repos.FindByNamespace("go.wit.com/toolkits/fyne"); repo != nil { + repo.RunVerbose(cmd) } }