Skip to content

Commit

Permalink
Update build.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
ujjwal-ibm committed Jun 12, 2024
1 parent bf19ea4 commit c9f94e5
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions scripts/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -51,14 +51,13 @@ if [[ -n "${TF_RELEASE}" ]]; then
fi

# Build!
VERSION="1.63.0"
echo "==> Building..."
gox \
-os="${XC_OS}" \
-arch="${XC_ARCH}" \
-osarch="${XC_EXCLUDE_OSARCH}" \
-ldflags "${LD_FLAGS}" \
-output "pkg/{{.OS}}_{{.Arch}}/terraform-provider-ibm_${VERSION}_{{.OS}}_{{.Arch}}" \
-output "pkg/{{.OS}}_{{.Arch}}/terraform-provider-ibm" \
.

# Move all the compiled things to the $GOPATH/bin
Expand Down Expand Up @@ -92,11 +91,10 @@ if [ "${TF_DEV}x" = "x" ]; then
echo "==> Packaging..."
for PLATFORM in $(find ./pkg -mindepth 1 -maxdepth 1 -type d); do
OSARCH=$(basename ${PLATFORM})
ZIPNAME="terraform-provider-ibm_${VERSION}_${OSARCH}"
echo "--> ${OSARCH}"

pushd $PLATFORM >/dev/null 2>&1
zip ../${ZIPNAME}.zip ./*
zip ../${OSARCH}.zip ./*
popd >/dev/null 2>&1
done
fi
Expand Down

0 comments on commit c9f94e5

Please sign in to comment.