Build jess cli with correct binary name
This commit is contained in:
parent
127c0b4f8d
commit
663e8fcfc7
1 changed files with 7 additions and 1 deletions
|
@ -50,6 +50,12 @@ echo "Please notice, that this build script includes metadata into the build."
|
|||
echo "This information is useful for debugging and license compliance."
|
||||
echo "Run the compiled binary with the version command to see the information included."
|
||||
|
||||
# build output name
|
||||
BIN_NAME="jess"
|
||||
if [[ "$GOOS" == "windows" ]]; then
|
||||
BIN_NAME="${BIN_NAME}.exe"
|
||||
fi
|
||||
|
||||
# build
|
||||
BUILD_PATH="github.com/safing/portbase/info"
|
||||
go build -ldflags "-X ${BUILD_PATH}.commit=${BUILD_COMMIT} -X ${BUILD_PATH}.buildOptions=${BUILD_BUILDOPTIONS} -X ${BUILD_PATH}.buildUser=${BUILD_USER} -X ${BUILD_PATH}.buildHost=${BUILD_HOST} -X ${BUILD_PATH}.buildDate=${BUILD_DATE} -X ${BUILD_PATH}.buildSource=${BUILD_SOURCE}" "$@"
|
||||
go build -o "${BIN_NAME}" -ldflags "-X ${BUILD_PATH}.commit=${BUILD_COMMIT} -X ${BUILD_PATH}.buildOptions=${BUILD_BUILDOPTIONS} -X ${BUILD_PATH}.buildUser=${BUILD_USER} -X ${BUILD_PATH}.buildHost=${BUILD_HOST} -X ${BUILD_PATH}.buildDate=${BUILD_DATE} -X ${BUILD_PATH}.buildSource=${BUILD_SOURCE}" "$@"
|
||||
|
|
Loading…
Add table
Reference in a new issue