From ac4999c7217a27fd53fd81f80df9805de21e0599 Mon Sep 17 00:00:00 2001 From: Jeff Carr Date: Mon, 12 Feb 2024 15:18:50 -0600 Subject: [PATCH] start moving to a go-gui-toolkit package --- .gitignore | 1 - Makefile | 4 ++-- README.md | 17 ++++++++--------- build | 8 ++++++++ debian/Makefile | 7 ++++--- 5 files changed, 22 insertions(+), 15 deletions(-) create mode 100755 build diff --git a/.gitignore b/.gitignore index fe40768..f7a5cb7 100644 --- a/.gitignore +++ b/.gitignore @@ -1,7 +1,6 @@ *.swp go.mod go.sum -build # ignore compiled plugins *.so diff --git a/Makefile b/Makefile index efe3e38..aaa8160 100644 --- a/Makefile +++ b/Makefile @@ -1,8 +1,8 @@ .PHONY: debian -all: build debian - GO111MODULE=off go build -o build main.go +all: build + # GO111MODULE=off go build -o build main.go build: nocui gocui andlabs diff --git a/README.md b/README.md index b65418b..67aa9c6 100644 --- a/README.md +++ b/README.md @@ -12,26 +12,25 @@ because the underlying OS is proprietary. Whenever possible, the Linux ones are ### Download and Install -#### Binary Distributions - -Official binary distributions are available at TODO: finish this - #### Install From Source -To download the toolkit packages: +To build all the toolkits so you can build your own GUI applications: ```go go get -v go.wit.com/toolkits/debian cd ~/go/src/toolkits/debian make ``` -To build the debian package +To build the go-gui-toolkits .deb package: ```go - go get -v go.wit.com/toolkits/debian - cd ~/go/src/toolkits/debian - make debian + go get go.wit.com/apps/go-deb@latest + go-deb go.wit.com/toolkits/debian ``` +#### Binary Distributions + +Official binary distributions are available at TODO: finish this + ### Contributing To contribute, please refer to [go.wit.com](http://go.wit.com) diff --git a/build b/build new file mode 100755 index 0000000..5b8b880 --- /dev/null +++ b/build @@ -0,0 +1,8 @@ +#!/bin/bash -x + +make -C ../nocui +make -C ../gocui +make -C ../andlabs + +mkdir -p files/usr/lib/go-gui +cp ../*.so files/usr/lib/go-gui/ diff --git a/debian/Makefile b/debian/Makefile index 5c55c9a..f13e124 100644 --- a/debian/Makefile +++ b/debian/Makefile @@ -49,10 +49,11 @@ DEBIAN: build: mv DEBIAN ../files/ - cd .. && dpkg-deb --build files ../${BASENAME}_${VERSION}_amd64.deb + -mkdir ~/incoming/ + cd .. && dpkg-deb --build files ~/incoming/${BASENAME}_${VERSION}_amd64.deb @echo @echo '#######################' - cd .. && dpkg-deb --info ../${BASENAME}_${VERSION}_amd64.deb - cd .. && dpkg-deb -c ../${BASENAME}_${VERSION}_amd64.deb + cd .. && dpkg-deb --info ~/incoming/${BASENAME}_${VERSION}_amd64.deb + cd .. && dpkg-deb -c ~/incoming/${BASENAME}_${VERSION}_amd64.deb @echo '#######################' @echo