Skip to content
This repository was archived by the owner on Mar 19, 2021. It is now read-only.

Commit fa09a15

Browse files
committed
fix build
1 parent a1f6610 commit fa09a15

File tree

5 files changed

+8
-31
lines changed

5 files changed

+8
-31
lines changed

.gitignore

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ Config.json
99

1010
.DS_Store
1111
node_modules
12-
/dist
12+
/frontend/dist
1313

1414
# local env files
1515
.env.local

build.py

-28
This file was deleted.

build.sh

+2-2
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,11 @@ sed -i 's/http.Dir(\".\/frontend\/dist\/\")/assetFS()/g' main.go
99
#sed -i 's/https[a-zA-Z0-9\:\/\.@\-]*\///g' WebPageBuild/index.html
1010
go get github.com/go-bindata/go-bindata/...
1111
go get github.com/elazarl/go-bindata-assetfs/...
12-
go-bindata -fs -prefix "frontend/dist/" frontend/dist/
13-
go-bindata-assetfs frontend/dist/...
12+
go-bindata-assetfs -prefix frontend frontend/dist/...
1413
CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -ldflags="-w -s" -o Robot_Monitor_Web_linux
1514
CGO_ENABLED=0 GOOS=darwin GOARCH=amd64 go build -ldflags="-w -s" -o Robot_Monitor_Web_mac
1615
CGO_ENABLED=0 GOOS=windows GOARCH=amd64 go build -ldflags="-w -s" -o Robot_Monitor_Web_windows.exe
16+
upx -q -9 Robot_Monitor_Web_linux Robot_Monitor_Web_mac Robot_Monitor_Web_windows.exe
1717
zip Robot_Monitor_Web_linux.zip Robot_Monitor_Web_linux
1818
zip Robot_Monitor_Web_mac.zip Robot_Monitor_Web_mac
1919
zip Robot_Monitor_Web_windows.zip Robot_Monitor_Web_windows.exe

go.mod

+1
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ go 1.14
55
require (
66
github.com/creack/goselect v0.1.1 // indirect
77
github.com/elazarl/go-bindata-assetfs v1.0.0
8+
github.com/go-bindata/go-bindata v3.1.2+incompatible // indirect
89
github.com/gorilla/websocket v1.4.2
910
go.bug.st/serial.v1 v0.0.0-20191202182710-24a6610f0541
1011
golang.org/x/sys v0.0.0-20200519105757-fe76b779f299 // indirect

go.sum

+4
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
github.com/creack/goselect v0.1.1 h1:tiSSgKE1eJtxs1h/VgGQWuXUP0YS4CDIFMp6vaI1ls0=
22
github.com/creack/goselect v0.1.1/go.mod h1:a/NhLweNvqIYMuxcMOuWY516Cimucms3DglDzQP3hKY=
3+
github.com/elazarl/go-bindata-assetfs v1.0.0 h1:G/bYguwHIzWq9ZoyUQqrjTmJbbYn3j3CKKpKinvZLFk=
34
github.com/elazarl/go-bindata-assetfs v1.0.0/go.mod h1:v+YaWX3bdea5J/mo8dSETolEo7R71Vk1u8bnjau5yw4=
5+
github.com/go-bindata/go-bindata v1.0.0 h1:DZ34txDXWn1DyWa+vQf7V9ANc2ILTtrEjtlsdJRF26M=
6+
github.com/go-bindata/go-bindata v3.1.2+incompatible h1:5vjJMVhowQdPzjE1LdxyFF7YFTXg5IgGVW4gBr5IbvE=
7+
github.com/go-bindata/go-bindata v3.1.2+incompatible/go.mod h1:xK8Dsgwmeed+BBsSy2XTopBn/8uK2HWuGSnA11C3Joo=
48
github.com/gorilla/websocket v1.4.2 h1:+/TMaTYc4QFitKJxsQ7Yye35DkWvkdLcvGKqM+x0Ufc=
59
github.com/gorilla/websocket v1.4.2/go.mod h1:YR8l580nyteQvAITg2hZ9XVh4b55+EU/adAjf1fMHhE=
610
go.bug.st/serial.v1 v0.0.0-20191202182710-24a6610f0541 h1:eQfoPfT+gNSh63t/oKanQlZyKgblRa/LMZRPIT+MHzA=

0 commit comments

Comments
 (0)