Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 3 additions & 4 deletions install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ case "$ARCH" in
*) echo "unknown arch: $ARCH" && exit 1 ;;
esac

BINARYEN_TAG="version_116"
BINARYEN_TAG="version_125"
DOWNLOAD_URL="https://github.com/extism/js-pdk/releases/download/$LATEST_TAG/extism-js-$ARCH-$OS-$LATEST_TAG.gz"

# Function to check if a directory is in PATH and writable
Expand Down Expand Up @@ -74,10 +74,9 @@ if ! which "wasm-merge" > /dev/null || ! which "wasm-opt" > /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
# Upstream binaryen uses arm64 for macos, windows but aarch64 for linux
if [ $ARCH = "arm64" ] && [ $OS = "linux" ]; then
ARCH="x86_64"
ARCH="aarch64"
fi

if [ $OS = "macos" ]; then
Expand Down