1
0
Fork 0
forked from lthn/blockchain

install conan if not installed

This commit is contained in:
Snider 2024-03-26 18:38:52 +00:00
parent a20a575647
commit e4ac49304f
2 changed files with 18 additions and 0 deletions

View file

@ -2,6 +2,14 @@
ARCHIVE_NAME_PREFIX=lethean-gui-bundle-linux-testnet-$(arch)
if [ $(conan --version &> /dev/null; echo $?) -eq 0 ]; then
echo "Conan is installed."
elif [ $(pip list | grep -Fq "conan"; echo $?) -eq 0 ]; then
echo "Conan is installed (verified via pip)."
else
echo "Conan does not appear to be installed. Installing..."
pip install conan # Install Conan
fi
prj_root=$(pwd)

View file

@ -9,6 +9,16 @@ curr_path=${BASH_SOURCE%/*}
: "${CMAKE_OSX_SYSROOT:?CMAKE_OSX_SYSROOT should be set to macOS SDK path, e.g.: /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk}"
: "${OPENSSL_ROOT_DIR:?variable not set, see also macosx_build_config.command}"
if [ $(conan --version &> /dev/null; echo $?) -eq 0 ]; then
echo "Conan is installed."
elif [ $(pip list | grep -Fq "conan"; echo $?) -eq 0 ]; then
echo "Conan is installed (verified via pip)."
else
echo "Conan does not appear to be installed. Installing..."
pip install conan # Install Conan
fi
ARCHIVE_NAME_PREFIX=lethean-gui-bundle-macos-testnet-$(arch)
rm -rf build; mkdir -p build/release; cd build/release;