mirror of
https://github.com/httprunner/httprunner.git
synced 2026-05-31 05:19:38 +08:00
fix: run ocr alone without opencv
This commit is contained in:
@@ -4,8 +4,10 @@
|
||||
|
||||
# Usage:
|
||||
# $ make build
|
||||
# $ make build tags=ocr
|
||||
# or
|
||||
# $ bash cli/scripts/build.sh
|
||||
# $ bash scripts/build.sh
|
||||
# $ bash scripts/build.sh ocr
|
||||
|
||||
set -e
|
||||
set -x
|
||||
@@ -14,9 +16,15 @@ set -x
|
||||
mkdir -p "output"
|
||||
bin_path="output/hrp"
|
||||
|
||||
# build
|
||||
# optional build tags: opencv ocr
|
||||
go build -ldflags '-s -w' -tags ocr -o "$bin_path" hrp/cmd/cli/main.go
|
||||
tags=$1
|
||||
|
||||
# build
|
||||
if [ -z "$tags" ]; then
|
||||
go build -ldflags '-s -w' -o "$bin_path" hrp/cmd/cli/main.go
|
||||
else
|
||||
go build -ldflags '-s -w' -tags "$tags" -o "$bin_path" hrp/cmd/cli/main.go
|
||||
fi
|
||||
|
||||
# check output and version
|
||||
ls -lh "$bin_path"
|
||||
|
||||
@@ -3,9 +3,9 @@
|
||||
# release will be triggered on github actions, see .github/workflows/release.yml
|
||||
|
||||
# Usage:
|
||||
# $ make bump version=v0.5.2
|
||||
# $ make bump version=v4.3.0
|
||||
# or
|
||||
# $ bash cli/scripts/bump_version.sh v0.5.2
|
||||
# $ bash scripts/bump_version.sh v4.3.0
|
||||
|
||||
set -e
|
||||
|
||||
|
||||
Reference in New Issue
Block a user