-
Notifications
You must be signed in to change notification settings - Fork 0
/
rupeeevolutionqtubuntu.sh
106 lines (90 loc) · 3.79 KB
/
rupeeevolutionqtubuntu.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
#!/bin/bash
TEMP=/tmp/answer$$
whiptail --title "Rupee Evolution [RUPEE]" --menu "Ubuntu 16.04/18.04 QT Wallet :" 20 0 0 1 "Compile Rupee Evolution QT Ubuntu 16.04" 2 "Update Rupee Evolution QT 16.04 to latest" 3 "Compile Rupee Evolution QT Ubuntu 18.04" 4 "Update Rupee Evolution QT 18.04 to latest" 2>$TEMP
choice=`cat $TEMP`
case $choice in
1) echo 1 "Compiling Rupee Evolution QT Ubuntu 16.04"
echo "Updating linux packages"
sudo apt-get update -y && sudo apt-get upgrade -y
sudo apt-get install -y git unzip build-essential libssl-dev libdb++-dev libboost-all-dev libqrencode-dev libminiupnpc-dev libevent-dev autogen automake libtool libqt5gui5 libqt5core5a libqt5dbus5 qttools5-dev qttools5-dev-tools qt5-default
echo "Installing RupeeEvolution Wallet"
git clone https://github.com/Rupee-Foundation/Rupee-Evolution
cd Rupee-Evolution || exit
git checkout master
git pull
#echo "Change line in rupeeevolution-qt.pro from stdlib=c99 to stdlib=gnu99"
#sed -i 's/c99/gnu99/' ~/rupeeevolution/rupeeevolution-qt.pro
qmake "USE_QRCODE=1" "USE_UPNP=1" rupeeevolution-qt.pro
make
echo "Get Chaindata"
cd ~/.rupeeevolution || exit
rm -rf database txleveldb smsgDB
#wget http://d.hashbag.cc/chaindata.zip
#unzip chaindata.zip
#wget https://github.com/Rupee-Foundation/rupeeevolution/releases/download/v3.3.7/chaindata1799510.zip
#unzip chaindata1799510.zip
#rm chaindata1799510.zip
Echo "Back to Compiled QT Binary Folder"
cd ~/Rupee-Evolution/src
;;
2) echo 2 "Update RupeeEvolution QT"
echo "Updating RupeeEvolution Wallet"
cd ~/Rupee-Evolution || exit
git checkout master
git pull
#echo "Change line in rupeeevolution-qt.pro from stdlib=c99 to stdlib=gnu99"
#sed -i 's/c99/gnu99/' ~/rupeeevolution/rupeeevolution-qt.pro
qmake "USE_QRCODE=1" "USE_UPNP=1" rupeeevolution-qt.pro
make
echo "Back to Compiled QT Binary Folder"
cd ~/Rupee-Evolution
;;
3) echo 3 "Compile RupeeEvolution QT Ubuntu 18.04"
echo "Updating linux packages"
sudo apt-get update -y && sudo apt-get upgrade -y
sudo apt-get install -y git unzip build-essential libdb++-dev libboost-all-dev libqrencode-dev libminiupnpc-dev libevent-dev autogen automake libtool libqt5gui5 libqt5core5a libqt5dbus5 qttools5-dev qttools5-dev-tools qt5-default
echo "Downgrade libssl-dev"
sudo apt-get install make
wget https://www.openssl.org/source/openssl-1.0.1j.tar.gz
tar -xzvf openssl-1.0.1j.tar.gz
cd openssl-1.0.1j
./config
make depend
sudo make install
sudo ln -sf /usr/local/ssl/bin/openssl `which openssl`
cd ~
openssl version -v
echo "Installing Rupee Evolution Wallet"
git clone https://github.com/Rupee-Foundation/Rupee-Evolution
cd Rupee-Evolution
git checkout master
git pull
#echo "Change line in rupeeevolution-qt.pro from stdlib=c99 to stdlib=gnu99"
#sed -i 's/c99/gnu99/' ~/rupeeevolution/rupeeevolution-qt.pro
qmake "USE_UPNP=1" "USE_QRCODE=1" OPENSSL_INCLUDE_PATH=/usr/local/ssl/include OPENSSL_LIB_PATH=/usr/local/ssl/lib rupeeevolution-qt.pro
make
#echo "Get Chaindata"
#cd ~/.rupeeevolution
#rm -rf database txleveldb smsgDB
#wget http://d.hashbag.cc/chaindata.zip
#unzip chaindata.zip
#wget https://github.com/Rupee-Foundation/rupeeevolution/releases/download/v3.3.7/chaindata1799510.zip
#unzip chaindata1799510.zip
#rm chaindata1799510.zip
Echo "Back to Compiled QT Binary Folder"
cd ~/Rupee-Evolution/src
;;
4) echo 4 "Update Rupee Evolution QT 18.04"
echo "Updating Rupee Evolution Wallet"
cd ~/Rupee-Evolution || exit
git checkout master
git pull
#echo "Change line in rupeeevolution-qt.pro from stdlib=c99 to stdlib=gnu99"
#sed -i 's/c99/gnu99/' ~/rupeeevolution/rupeeevolution-qt.pro
qmake "USE_UPNP=1" "USE_QRCODE=1" OPENSSL_INCLUDE_PATH=/usr/local/ssl/include OPENSSL_LIB_PATH=/usr/local/ssl/lib rupeeevolution-qt.pro
make
echo "Back to Compiled QT Binary Folder"
cd ~/Rupee-Evolution
;;
esac
echo Selected $choice