Skip to content

Commit

Permalink
Merge pull request #45 from Zwiterrion/main
Browse files Browse the repository at this point in the history
Unable to run wasm-merge with a Linux and docker based Docker image running on a Mac m1
  • Loading branch information
bhelx authored Feb 8, 2024
2 parents 40a840c + 4dd6edd commit 243e583
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,12 @@ if ! which "wasm-merge" > /dev/null; then
aarch64*) ARCH="arm64" ;;
esac

# matches the case where the user installs extism-pdk in a Linux-based Docker image running on mac m1
# binaryen didn't have arm64 release file for linux
if [ $ARCH = "arm64" ] && [ $OS = "linux" ]; then
ARCH="x86_64"
fi

curl -L -O "https://github.com/WebAssembly/binaryen/releases/download/$BINARYEN_TAG/binaryen-$BINARYEN_TAG-$ARCH-$OS.tar.gz"
tar xf "binaryen-$BINARYEN_TAG-$ARCH-$OS.tar.gz"
mv "binaryen-$BINARYEN_TAG"/ binaryen/
Expand Down

0 comments on commit 243e583

Please sign in to comment.