From cbe33ab5fe2f0d2aeb2dbf6f361834a126bd473c Mon Sep 17 00:00:00 2001 From: Jeff Carr Date: Wed, 21 Feb 2024 15:26:03 -0600 Subject: [PATCH] try a build script for go-gui-toolkit package --- Makefile | 3 +++ stateWindow.go | 6 ++++++ 2 files changed, 9 insertions(+) diff --git a/Makefile b/Makefile index 95801a0..01811f4 100644 --- a/Makefile +++ b/Makefile @@ -47,6 +47,9 @@ debian: mirrors: -wit mirrors +build-go-gui-toolkits: + ./go-deb --no-gui --repo go.wit.com/apps/go-gui-toolkits + build-all: go-deb --no-gui --repo go.wit.com/apps/autotypist go-deb --no-gui --repo go.wit.com/apps/control-panel-digitalocean diff --git a/stateWindow.go b/stateWindow.go index cb03e01..857d795 100644 --- a/stateWindow.go +++ b/stateWindow.go @@ -161,7 +161,13 @@ func (c *controlBox) buildPackage() bool { return false } + // experiment for the toolkit package + if c.status.Exists("build") { + shell.Run([]string{"./build"}) + } + fulldebname := filepath.Join(homeDir, "incoming", debname) + shell.Run([]string{"dpkg-deb", "--build", "files", fulldebname}) if shell.Exists(fulldebname) { log.Warn("build worked")