Skip to content

Commit

Permalink
.
Browse files Browse the repository at this point in the history
  • Loading branch information
Matt Proud committed May 22, 2024
1 parent d6bbabb commit cd607de
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions scripts/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,16 @@ readonly script_dir="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 &&

env GOOS=linux GOARCH=amd64 go build \
-ldflags="-X 'github.com/vmware-labs/vmware-customer-connect-cli/cmd.cliVersion=${verison}'" \
-o ${script_dir}/builds/vcc-linux-v${verison}
-o ${script_dir}/builds/vcc-linux-amd64-v${verison}

env GOOS=darwin GOARCH=amd64 go build \
-ldflags="-X github.com/vmware-labs/vmware-customer-connect-cli/cmd.cliVersion=${verison}" \
-o ${script_dir}/builds/vcc-darwin-v${verison}
-o ${script_dir}/builds/vcc-darwin-amd64-v${verison}

env GOOS=darwin GOARCH=arm64 go build \
-ldflags="-X github.com/vmware-labs/vmware-customer-connect-cli/cmd.cliVersion=${verison}" \
-o ${script_dir}/builds/vcc-darwin-arm64-v${verison}

env GOOS=windows GOARCH=amd64 go build \
-ldflags="-X github.com/vmware-labs/vmware-customer-connect-cli/cmd.cliVersion=${verison}" \
-o ${script_dir}/builds/vcc-windows-v${verison}.exe
-o ${script_dir}/builds/vcc-windows-amd64-v${verison}.exe

0 comments on commit cd607de

Please sign in to comment.