Skip to content

Commit b0a29a9

Browse files
committed
fix script
1 parent f8aeb1d commit b0a29a9

File tree

1 file changed

+24
-21
lines changed

1 file changed

+24
-21
lines changed

scripts/install_tonsdk.sh

Lines changed: 24 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -13,25 +13,26 @@ SCRIPTPATH="$( cd "$(dirname "$0")" >/dev/null 2>&1 ; pwd -P )"
1313
bash "$SCRIPTPATH/install_rust.sh"
1414
source ~/.profile
1515

16-
# INSTALL TON-SDK
17-
if [ -d "./TON-SDK" ]; then
18-
echo "TON-SDK FOLDER ALREADY EXISTS"
16+
# INSTALL SDK
17+
if [ -d "./SDK" ]; then
18+
echo "SDK FOLDER ALREADY EXISTS"
1919
else
20-
git clone https://github.com/tonlabs/TON-SDK.git
20+
git clone https://github.com/tonlabs/ever-sdk.git ./SDK
2121
fi
22-
cd ./TON-SDK && git pull --ff-only
22+
cd ./SDK && git reset --hard HEAD && git pull --ff-only
2323
cargo update
24-
if [ `uname -s` = Darwin ]; then
25-
if [ `uname -m` = arm64 ]; then
26-
rustup target add x86_64-apple-darwin
27-
cargo build --release --target x86_64-apple-darwin
28-
else
29-
cargo build --release
30-
fi
31-
else
32-
cargo build --release
33-
fi
3424

25+
# if [ `uname -s` = Darwin ]; then
26+
# if [ `uname -m` = arm64 ]; then
27+
# rustup target add x86_64-apple-darwin
28+
# cargo build --release --target x86_64-apple-darwin
29+
# else
30+
# cargo build --release
31+
# fi
32+
# else
33+
# cargo build --release
34+
# fi
35+
cargo build --release
3536

3637
if [ `uname -s` = Darwin ]; then
3738
if [ $(commandExist 'port') == "1" ]; then
@@ -132,18 +133,20 @@ elif [ `uname -s` = Darwin ]; then
132133
echo "$HEADER ${MACOS_LIB_INCLUDE_DIR}/include/tonclient.h"
133134
sudo ln -s $HEADER ${MACOS_LIB_INCLUDE_DIR}/include/tonclient.h || echo "ERROR: symbolic link tonclient.h already exist"
134135

135-
if [ `uname -m` = arm64 ]; then
136-
DYLIB="$(pwd)/target/x86_64-apple-darwin/release/libton_client.dylib"
137-
else
138-
DYLIB="$(pwd)/target/release/libton_client.dylib"
139-
fi
136+
# if [ `uname -m` = arm64 ]; then
137+
# DYLIB="$(pwd)/target/x86_64-apple-darwin/release/libton_client.dylib"
138+
# else
139+
# DYLIB="$(pwd)/target/release/libton_client.dylib"
140+
# fi
141+
DYLIB="$(pwd)/target/release/libton_client.dylib"
140142
echo ""
141143
echo "Create symbolic link libton_client.dylib"
142144
if [[ -h "${MACOS_LIB_INCLUDE_DIR}/lib/libton_client.dylib" ]]; then
143145
sudo rm ${MACOS_LIB_INCLUDE_DIR}/lib/libton_client.dylib
144146
echo "OK: ${MACOS_LIB_INCLUDE_DIR}/lib/libton_client.dylib old symlink deleted and will create new"
145147
fi
146148
sudo ln -s $DYLIB ${MACOS_LIB_INCLUDE_DIR}/lib/libton_client.dylib || echo "ERROR: symbolic link libton_client.dylib already exist"
149+
echo "${DYLIB} to ${MACOS_LIB_INCLUDE_DIR}/lib/libton_client.dylib"
147150

148151
echo ""
149152
echo "Copy pc file"
@@ -154,7 +157,7 @@ else
154157
echo "I CAN INSTALL ONLY LINUX(DEBIAN / UBUNTU / ...) OR MACOS"
155158
fi
156159

157-
echo $'\nINSTALLATION TON-SDK COMPLETE'
160+
echo $'\nINSTALLATION SDK COMPLETE'
158161

159162

160163

0 commit comments

Comments
 (0)