change: make ocr as optional build tags

This commit is contained in:
debugtalk
2022-09-21 16:03:58 +08:00
parent a742b575fa
commit 937b48236e
8 changed files with 65 additions and 33 deletions

View File

@@ -15,8 +15,8 @@ mkdir -p "output"
bin_path="output/hrp"
# build
# optional build tags: opencv
go build -ldflags '-s -w' -o "$bin_path" hrp/cmd/cli/main.go
# optional build tags: opencv ocr
go build -ldflags '-s -w' -tags ocr -o "$bin_path" hrp/cmd/cli/main.go
# check output and version
ls -lh "$bin_path"