Skip to content

Commit

Permalink
test test
Browse files Browse the repository at this point in the history
  • Loading branch information
baileympearson committed Dec 4, 2024
1 parent 0f74d7b commit 52dd4e3
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion etc/install-zstd.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,23 @@ clean_deps() {
rm -rf deps
}

download_zstd_windows() {
curl -L "https://github.com/facebook/zstd/releases/download/v$ZSTD_VERSION/zstd-$ZSTD_VERSION-win64.zip" \
| tar -zxf - -C deps/zstd --strip-components 1
}

download_zstd() {
mkdir -p deps/zstd
ZSTD_VERSION=$(node -p "require('./package.json')['mongodb:zstd_version']")
is_windows=$(node -p "process.platform === 'win32'")


curl -L "https://github.com/facebook/zstd/releases/download/v$ZSTD_VERSION/zstd-$ZSTD_VERSION.tar.gz" \
if [ "$is_windows" == "true" ]; then
download_zstd_windows
else
curl -L "https://github.com/facebook/zstd/releases/download/v$ZSTD_VERSION/zstd-$ZSTD_VERSION.tar.gz" \
| tar -zxf - -C deps/zstd --strip-components 1
fi
}

build_zstd() {
Expand Down

0 comments on commit 52dd4e3

Please sign in to comment.