Skip to content

Commit

Permalink
chore: remove external dependency for build script on macOS (#132)
Browse files Browse the repository at this point in the history
Co-authored-by: Matej Spiller Muys <matej.spiller-muys@bitstamp.net>
  • Loading branch information
matejsp and Matej Spiller Muys authored Jan 18, 2022
1 parent 7671bc4 commit 784cec0
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions scripts/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,5 +16,10 @@ go build \
-o "$OUTPUT_DIR/$OUTPUT_BIN" \
./cmd/colima

# sha256sum is not on macOS by default, fixable with `brew install coreutils`
cd "${OUTPUT_DIR}" && sha256sum "${OUTPUT_BIN}" >"${OUTPUT_BIN}.sha256sum"
# sha256sum is not on macOS by default, use shasum
SHA256SUM=sha256sum
if [[ "$OSTYPE" == "darwin"* ]]; then
SHA256SUM="shasum -a 256"
fi

cd "${OUTPUT_DIR}" && ${SHA256SUM} "${OUTPUT_BIN}" >"${OUTPUT_BIN}.sha256sum"

0 comments on commit 784cec0

Please sign in to comment.