start moving to a go-gui-toolkit package

This commit is contained in:
Jeff Carr 2024-02-12 15:18:50 -06:00
parent a9acc5d707
commit ac4999c721
5 changed files with 22 additions and 15 deletions

1
.gitignore vendored
View File

@ -1,7 +1,6 @@
*.swp *.swp
go.mod go.mod
go.sum go.sum
build
# ignore compiled plugins # ignore compiled plugins
*.so *.so

View File

@ -1,8 +1,8 @@
.PHONY: debian .PHONY: debian
all: build debian all: build
GO111MODULE=off go build -o build main.go # GO111MODULE=off go build -o build main.go
build: nocui gocui andlabs build: nocui gocui andlabs

View File

@ -12,26 +12,25 @@ because the underlying OS is proprietary. Whenever possible, the Linux ones are
### Download and Install ### Download and Install
#### Binary Distributions
Official binary distributions are available at TODO: finish this
#### Install From Source #### Install From Source
To download the toolkit packages: To build all the toolkits so you can build your own GUI applications:
```go ```go
go get -v go.wit.com/toolkits/debian go get -v go.wit.com/toolkits/debian
cd ~/go/src/toolkits/debian cd ~/go/src/toolkits/debian
make make
``` ```
To build the debian package To build the go-gui-toolkits .deb package:
```go ```go
go get -v go.wit.com/toolkits/debian go get go.wit.com/apps/go-deb@latest
cd ~/go/src/toolkits/debian go-deb go.wit.com/toolkits/debian
make debian
``` ```
#### Binary Distributions
Official binary distributions are available at TODO: finish this
### Contributing ### Contributing
To contribute, please refer to [go.wit.com](http://go.wit.com) To contribute, please refer to [go.wit.com](http://go.wit.com)

8
build Executable file
View File

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

7
debian/Makefile vendored
View File

@ -49,10 +49,11 @@ DEBIAN:
build: build:
mv DEBIAN ../files/ 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
@echo '#######################' @echo '#######################'
cd .. && dpkg-deb --info ../${BASENAME}_${VERSION}_amd64.deb cd .. && dpkg-deb --info ~/incoming/${BASENAME}_${VERSION}_amd64.deb
cd .. && dpkg-deb -c ../${BASENAME}_${VERSION}_amd64.deb cd .. && dpkg-deb -c ~/incoming/${BASENAME}_${VERSION}_amd64.deb
@echo '#######################' @echo '#######################'
@echo @echo