summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2024-02-12 15:18:50 -0600
committerJeff Carr <[email protected]>2024-02-12 15:18:50 -0600
commitac4999c7217a27fd53fd81f80df9805de21e0599 (patch)
tree2b0a27b2ed88674c0def75890abbf5e4c604095a
parenta9acc5d707cd7c1dda95035a81cb18123b59b24e (diff)
start moving to a go-gui-toolkit package
-rw-r--r--.gitignore1
-rw-r--r--Makefile4
-rw-r--r--README.md17
-rwxr-xr-xbuild8
-rw-r--r--debian/Makefile7
5 files changed, 22 insertions, 15 deletions
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