3
3
# This script installs libmongocrypt into an "install" directory.
4
4
set -eux
5
5
6
- LIBMONGOCRYPT_TAG=" 1.8.2 "
6
+ LIBMONGOCRYPT_TAG=" 1.11.0 "
7
7
8
8
# Install libmongocrypt based on OS.
9
9
if [ " Windows_NT" = " ${OS:- } " ]; then
@@ -13,25 +13,18 @@ if [ "Windows_NT" = "${OS:-}" ]; then
13
13
mkdir libmongocrypt-all
14
14
cd libmongocrypt-all
15
15
# The following URL is published from the upload-all task in the libmongocrypt Evergreen project.
16
- curl https://mciuploads.s3.amazonaws. com/libmongocrypt/all/ $LIBMONGOCRYPT_TAG /libmongocrypt-all .tar.gz -o libmongocrypt-all.tar.gz
16
+ curl -L https://github. com/mongodb/ libmongocrypt/releases/download/ $LIBMONGOCRYPT_TAG /libmongocrypt-windows-x86_64- $LIBMONGOCRYPT_TAG .tar.gz -o libmongocrypt-all.tar.gz
17
17
tar -xf libmongocrypt-all.tar.gz
18
18
cd ..
19
- cp libmongocrypt-all/windows-test/ bin/mongocrypt.dll c:/libmongocrypt/bin
20
- cp libmongocrypt-all/windows-test/ include/mongocrypt/* .h c:/libmongocrypt/include
19
+ cp libmongocrypt-all/bin/mongocrypt.dll c:/libmongocrypt/bin
20
+ cp libmongocrypt-all/include/mongocrypt/* .h c:/libmongocrypt/include
21
21
22
22
rm -rf libmongocrypt-all
23
23
echo " fetching build for Windows ... end"
24
24
else
25
25
rm -rf libmongocrypt
26
- # git clone https://github.com/mongodb/libmongocrypt --depth=1 --branch $LIBMONGOCRYPT_TAG 2> /dev/null
27
- git clone https://github.com/mongodb/libmongocrypt 2> /dev/null
28
- git -C libmongocrypt checkout 14ccd9ce8a030158aec07f63e8139d34b95d88e6 2> /dev/null
29
- declare -a crypt_cmake_flags=(
30
- " -DBUILD_TESTING=OFF"
31
- " -DENABLE_ONLINE_TESTS=OFF"
32
- " -DENABLE_MONGOC=OFF"
33
- )
34
- if ! ( DEBUG=" 0" DEFAULT_BUILD_ONLY=true LIBMONGOCRYPT_EXTRA_CMAKE_FLAGS=" ${crypt_cmake_flags[*]} " ./libmongocrypt/.evergreen/compile.sh > | output.txt 2>&1 ); then
26
+ git clone https://github.com/mongodb/libmongocrypt --depth=1 --branch $LIBMONGOCRYPT_TAG 2> /dev/null
27
+ if ! ( ./libmongocrypt/.evergreen/compile.sh > | output.txt 2>&1 ); then
35
28
cat output.txt 1>&2
36
29
exit 1
37
30
fi
0 commit comments