diff --git a/meson/build-cli.sh b/meson/build-cli.sh index 07863bf..4327efb 100755 --- a/meson/build-cli.sh +++ b/meson/build-cli.sh @@ -1,7 +1,10 @@ #!/bin/bash exec_name=writeas +BIN_DIR="$MESON_BUILD_ROOT"/bin echo "Building $exec_name CLI..." -go build github.com/writeas/writeas-cli/cmd/writeas +cd "$MESON_SOURCE_ROOT"/src/github.com/writeas/writeas-cli/cmd/writeas && +mkdir -p "$BIN_DIR" && +go build -o "$BIN_DIR"/writeas && echo "Success."