keep hammering
This commit is contained in:
parent
5e635873ad
commit
9d1b3c0359
4
Makefile
4
Makefile
|
@ -33,10 +33,14 @@ vet:
|
||||||
|
|
||||||
build:
|
build:
|
||||||
echo "build it!"
|
echo "build it!"
|
||||||
|
-rm resources/*.so
|
||||||
|
cp -a ~/go/src/go.wit.com/toolkits/*.so resources/
|
||||||
GO111MODULE=off go build -v -x -ldflags " \
|
GO111MODULE=off go build -v -x -ldflags " \
|
||||||
-X main.VERSION=${VERSION}"
|
-X main.VERSION=${VERSION}"
|
||||||
|
|
||||||
install:
|
install:
|
||||||
|
-rm resources/*.so
|
||||||
|
cp -a ~/go/src/go.wit.com/toolkits/*.so resources/
|
||||||
GO111MODULE=off go install -v -x -ldflags " \
|
GO111MODULE=off go install -v -x -ldflags " \
|
||||||
-X main.VERSION=${VERSION}"
|
-X main.VERSION=${VERSION}"
|
||||||
# go install -v -x
|
# go install -v -x
|
||||||
|
|
6
main.go
6
main.go
|
@ -1,6 +1,7 @@
|
||||||
package main
|
package main
|
||||||
|
|
||||||
import (
|
import (
|
||||||
|
"embed"
|
||||||
"os"
|
"os"
|
||||||
"path/filepath"
|
"path/filepath"
|
||||||
|
|
||||||
|
@ -12,6 +13,10 @@ import (
|
||||||
)
|
)
|
||||||
|
|
||||||
var VERSION string
|
var VERSION string
|
||||||
|
|
||||||
|
//go:embed resources/*
|
||||||
|
var resources embed.FS
|
||||||
|
|
||||||
var myargs argv
|
var myargs argv
|
||||||
|
|
||||||
func main() {
|
func main() {
|
||||||
|
@ -34,6 +39,7 @@ func main() {
|
||||||
os.Unsetenv("GO111MODULE")
|
os.Unsetenv("GO111MODULE")
|
||||||
|
|
||||||
me.myGui = gui.New()
|
me.myGui = gui.New()
|
||||||
|
me.myGui.InitEmbed(resources)
|
||||||
me.myGui.Default()
|
me.myGui.Default()
|
||||||
|
|
||||||
// our main window
|
// our main window
|
||||||
|
|
Loading…
Reference in New Issue