-
Notifications
You must be signed in to change notification settings - Fork 20
/
generate.go
22 lines (17 loc) · 1.14 KB
/
generate.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
package scripts
import _ "golang.org/x/mobile/bind"
// windows exe icon and describe
// windres from minGW64 https://sourceforge.net/projects/mingw-w64/files/mingw-w64/mingw-w64-release/
// qt set application icon https://github.com/therecipe/qt/wiki/Setting-the-Application-Icon
//go:generate windres.exe -o yuhaiin_windows_amd64.syso yuhaiin.rc
//go:generate windres.exe -F pe-i386 -o yuhaiin_windows_386.syso yuhaiin.rc
// hide windows cmd window while runnig kernel
//go:generate go build -ldflags="-H windowsgui -w -s" -tags api -o deploy/yuhaiin_kernel.exe
// windows debug gui
//go:generate set QT_DEBUG_CONSOLE=true
//go:generate qtdeploy build
// generate gRPC and protobuf
//go:generate protoc -I "./" -I "../" --go_out=plugins=grpc:. --go_opt=paths=source_relative api/api.proto
//go:generate protoc --go_out=plugins=grpc:. --go_opt=paths=source_relative config/config.proto
//go:generate protoc -I "./" -I "../" --go_out=. --go-grpc_out=. --go-grpc_opt=paths=source_relative --go_opt=paths=source_relative api/api.proto
//go:generate protoc --go_out=. --go-grpc_out=. --go-grpc_opt=paths=source_relative --go_opt=paths=source_relative config/config.proto