diff options
| author | Jeff Carr <[email protected]> | 2024-11-07 03:10:21 -0600 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2024-11-07 03:10:21 -0600 |
| commit | 9d1b3c03590af139de4a2b63d06f24fd74bcb283 (patch) | |
| tree | 987a06a5ae26749c00b54be5b3649a0e64ad4448 | |
| parent | 5e635873adb191988ebb7ac2d115efd602c31313 (diff) | |
keep hammering
| -rw-r--r-- | Makefile | 4 | ||||
| -rw-r--r-- | main.go | 6 |
2 files changed, 10 insertions, 0 deletions
@@ -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 @@ -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 |
