diff --git a/mytonctrl/scripts/upgrade.sh b/mytonctrl/scripts/upgrade.sh index 81a9fd0b..c3c4c52b 100644 --- a/mytonctrl/scripts/upgrade.sh +++ b/mytonctrl/scripts/upgrade.sh @@ -29,7 +29,7 @@ COLOR='\033[92m' ENDC='\033[0m' # Установить дополнительные зависимости -apt-get install -y libsecp256k1-dev libsodium-dev ninja-build fio rocksdb-tools liblz4-dev libjemalloc-dev +apt-get install -y libsecp256k1-dev libsodium-dev ninja-build fio rocksdb-tools liblz4-dev libjemalloc-dev automake libtool # bugfix if the files are in the wrong place wget "https://ton-blockchain.github.io/global.config.json" -O global.config.json @@ -67,6 +67,10 @@ ls -A1 | xargs rm -rf echo "https://github.com/${author}/${repo}.git -> ${branch}" git clone --recursive https://github.com/${author}/${repo}.git . git checkout ${branch} + +git submodule sync --recursive +git submodule update + export CC=/usr/bin/clang export CXX=/usr/bin/clang++ export CCACHE_DISABLE=1 diff --git a/scripts/ton_installer.sh b/scripts/ton_installer.sh index 6d4ad84a..6454fd2a 100644 --- a/scripts/ton_installer.sh +++ b/scripts/ton_installer.sh @@ -55,7 +55,7 @@ if [ "$OSTYPE" == "linux-gnu" ]; then elif [ -f /etc/debian_version ]; then echo "Ubuntu/Debian Linux detected." apt-get update - apt-get install -y build-essential curl git cmake clang libgflags-dev zlib1g-dev libssl-dev libreadline-dev libmicrohttpd-dev pkg-config libgsl-dev python3 python3-dev python3-pip libsecp256k1-dev libsodium-dev liblz4-dev libjemalloc-dev + apt-get install -y build-essential curl git cmake clang libgflags-dev zlib1g-dev libssl-dev libreadline-dev libmicrohttpd-dev pkg-config libgsl-dev python3 python3-dev python3-pip libsecp256k1-dev libsodium-dev liblz4-dev libjemalloc-dev automake libtool # Install ninja apt-get install -y ninja-build @@ -118,6 +118,9 @@ if [ "${ton_node_version}" != "master" ]; then cd ../ fi +git submodule sync --recursive +git submodule update + git config --global --add safe.directory $SOURCES_DIR/ton # Подготавливаем папки для компиляции