1
0
Fork 0
mirror of https://github.com/dragonflydb/dragonfly.git synced 2024-12-14 11:58:02 +00:00
dragonflydb-dragonfly/tools/release.sh
Roman Gershman 448d065647
fix(server): Fix a crash when running "client list" command. (#179)
Also, enhance release script to apply linker optimizations when building the binaries.

Signed-off-by: Roman Gershman <roman@dragonflydb.io>
2022-06-26 17:25:42 +03:00

23 lines
496 B
Bash
Executable file

#!/bin/sh
set -e
if ! [ -d helio ]; then
echo "could not find helio"
exit 1
fi
ARCH=`uname -m`
NAME="dragonfly-${ARCH}"
pwd
./helio/blaze.sh -release -DBoost_USE_STATIC_LIBS=ON -DOPENSSL_USE_STATIC_LIBS=ON \
-DENABLE_GIT_VERSION=ON -DWITH_UNWIND=OFF -DHELIO_RELEASE_FLAGS="-flto"
cd build-opt
ninja dragonfly && ldd dragonfly
./dragonfly --version
mv dragonfly $NAME
tar cvfz $NAME.unstripped.tar.gz $NAME ../LICENSE.md
strip $NAME
tar cvfz $NAME.tar.gz $NAME ../LICENSE.md