-
Notifications
You must be signed in to change notification settings - Fork 6
/
setup.sh
55 lines (48 loc) · 2.13 KB
/
setup.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
#!/bin/bash
# Colors
RED='\033[31m'
GREEN='\033[1;32m'
BLUE='\033[0;34m'
NC='\033[0m'
echo -e "${BLUE}==> Installing Dokan Android app configuration script${NC}"
if [[ ! -f /usr/local/bin/config-android ]]; then
wget -qO /usr/local/bin/config-android https://raw.githubusercontent.com/weDevsOfficial/dokan-app-build-script/master/configure-android.sh
# Executable permission
chmod a+x /usr/local/bin/config-android
echo -e "${GREEN}Done!${NC}"
else
echo -e "${GREEN}Android configuration script is already installed${NC}"
fi
echo -e "${BLUE}==> Installing Dokan Android app build script${NC}"
if [[ ! -f /usr/local/bin/build-android ]]; then
wget -qO /usr/local/bin/build-android https://raw.githubusercontent.com/weDevsOfficial/dokan-app-build-script/master/build-android.sh
# Executable permission
chmod a+x /usr/local/bin/build-android
echo -e "${GREEN}Done!${NC}"
else
echo -e "${GREEN}Android build script is already installed${NC}"
fi
echo -e "${BLUE}==> Installing Dokan iOS app configuration script${NC}"
if [[ ! -f /usr/local/bin/config-ios ]]; then
wget -qO /usr/local/bin/config-ios https://raw.githubusercontent.com/weDevsOfficial/dokan-app-build-script/master/configure-ios.sh
# Executable permission
chmod a+x /usr/local/bin/config-ios
echo -e "${GREEN}Done!${NC}"
else
echo -e "${GREEN}iOS configuration script is already installed${NC}\n"
fi
# Install "update-dokan-app-scripts"
if [[ ! -f /usr/local/bin/update-dokan-app-scripts ]]; then
wget -qO /usr/local/bin/update-dokan-app-scripts https://raw.githubusercontent.com/weDevsOfficial/dokan-app-build-script/master/update-build-scripts.sh
# Executable permission
chmod a+x /usr/local/bin/update-dokan-app-scripts
fi
# Install "uninstall-dokan-app-scripts"
if [[ ! -f /usr/local/bin/uninstall-dokan-app-scripts ]]; then
wget -qO /usr/local/bin/uninstall-dokan-app-scripts https://raw.githubusercontent.com/weDevsOfficial/dokan-app-build-script/master/uninstall-build-scripts.sh
# Executable permission
chmod a+x /usr/local/bin/uninstall-dokan-app-scripts
fi
echo "**************************"
echo "* Finished Installation! *"
echo "**************************"