2023-01-10 13:46:20 +00:00
|
|
|
#!/usr/bin/env sh
|
|
|
|
|
2024-01-17 12:51:31 +00:00
|
|
|
APP_PATH=build-release/dragonfly
|
2022-05-25 18:14:04 +00:00
|
|
|
|
|
|
|
set -e
|
|
|
|
|
2022-12-23 17:48:15 +00:00
|
|
|
if ! [ -f "helio/blaze.sh" ]; then
|
|
|
|
echo "ERROR"
|
|
|
|
echo "Could not find helio. Please only run this script from repo root."
|
|
|
|
echo "If you are already on the repo root, you might've cloned without submodules."
|
|
|
|
echo "Try running 'git submodule update --init --recursive'"
|
2022-05-25 18:14:04 +00:00
|
|
|
exit 1
|
|
|
|
fi
|
|
|
|
|
|
|
|
pwd
|
2022-05-30 05:49:16 +00:00
|
|
|
|
2024-01-17 12:51:31 +00:00
|
|
|
make release
|
2022-12-23 17:48:15 +00:00
|
|
|
|
2023-01-10 13:46:20 +00:00
|
|
|
if ! [ -f ${APP_PATH} ]; then
|
|
|
|
echo "ERROR"
|
|
|
|
echo "Failed to generate new dragonfly binary."
|
|
|
|
exit 1
|
|
|
|
fi
|
|
|
|
|
|
|
|
${APP_PATH} --version
|
|
|
|
|
|
|
|
if readelf -a ${APP_PATH} | grep GLIBC_PRIVATE >/dev/null 2>&1 ; then
|
|
|
|
echo "ERROR"
|
|
|
|
echo "The generated binary contain invalid GLIBC version entries."
|
|
|
|
exit 1
|
|
|
|
fi
|
2022-12-23 17:48:15 +00:00
|
|
|
|
|
|
|
make package
|