-
Notifications
You must be signed in to change notification settings - Fork 2
/
install.ios.sh
47 lines (40 loc) · 956 Bytes
/
install.ios.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
#!/bin/bash
RED='\033[0;31m'
NC='\033[0m'
if ! [ -x "$(command -v git)" ];
then
echo 'Error: git is not installed.' >&2
exit 1
fi
if ! [ -x "$(command -v brew)" ];
then
echo 'Error: Homebrew is not installed.' >&2
echo -e "To install Homebrew, go to website ${RED}https://brew.sh/${NC}." >&2
exit 1
fi
if ! [ -x "$(command -v npm)" ];
then
echo 'Error: npm is not installed.' >&2
echo -e "To install yarn, just run ${RED}brew install node${NC}." >&2
exit 1
fi
if ! [ -x "$(command -v yarn)" ];
then
echo 'Error: yarn is not installed.' >&2
echo -e "To install yarn, just run ${RED}brew install yarn${NC}." >&2
exit 1
fi
if ! [ -x "$(command -v pod)" ];
then
echo 'Error: cocoapods is not installed.' >&2
echo -e "To install cocoapod, just run ${RED}sudo gem install cocoapods${NC}" >&2
exit 1
fi
git clone https://github.com/alicedapp/DAOstack
cd AliceX
yarn
git submodule update --init --recursive
cd ios
pod install
cd ..
./alice -i