keep hammering

This commit is contained in:
Jeff Carr 2024-11-07 03:10:21 -06:00
parent 5e635873ad
commit 9d1b3c0359
2 changed files with 10 additions and 0 deletions

View File

@ -33,10 +33,14 @@ vet:
build:
echo "build it!"
-rm resources/*.so
cp -a ~/go/src/go.wit.com/toolkits/*.so resources/
GO111MODULE=off go build -v -x -ldflags " \
-X main.VERSION=${VERSION}"
install:
-rm resources/*.so
cp -a ~/go/src/go.wit.com/toolkits/*.so resources/
GO111MODULE=off go install -v -x -ldflags " \
-X main.VERSION=${VERSION}"
# go install -v -x

View File

@ -1,6 +1,7 @@
package main
import (
"embed"
"os"
"path/filepath"
@ -12,6 +13,10 @@ import (
)
var VERSION string
//go:embed resources/*
var resources embed.FS
var myargs argv
func main() {
@ -34,6 +39,7 @@ func main() {
os.Unsetenv("GO111MODULE")
me.myGui = gui.New()
me.myGui.InitEmbed(resources)
me.myGui.Default()
// our main window