Repository navigation
Expand file tree
/
Copy pathbuild.sh
More file actions
executable file
·92 lines (89 loc) · 2.41 KB
/
Copy pathbuild.sh
File metadata and controls
executable file
·92 lines (89 loc) · 2.41 KB
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
#!/bin/bash
set -e
source colors.sh 2>/dev/null || echo -e "\033[0;31m[ERROR]\033[0m Colors file could not be loaded"
user_option() {
yellow "Select your build version"
echo ""
echo -e "\033[1;33m1) \033[0;34mBeta\033[0m"
echo -e "\033[1;33m2) \033[0;34mStable\033[0m"
echo ""
read -n 1 -p "Enter your selection: " SELECTION
echo ""
case $SELECTION in
"1")
info "building BETA version"
echo ""
info "Building VK version"
./gradlew :beta:zipRelease --no-configuration-cache
info "Building no VK version"
./gradlew :beta:novkzipRelease --no-configuration-cache
info "Cleaning"
./gradlew :beta:cleanDir --no-configuration-cache
success "All done!"
exit
;;
"2")
info "building STABLE version"
info "Building VK version"
./gradlew :stable:zipRelease --no-configuration-cache
info "Building no VK version"
./gradlew :stable:novkzipRelease --no-configuration-cache
info "Cleaning"
./gradlew :stable:cleanDir --no-configuration-cache
success "All done!"
exit
;;
*)
error "No option selected, aborting"
exit 1
;;
esac
}
if [ ! -z $1 ]; then
while getopts "bsa" OPTIONS; do
case $OPTIONS in
b)
info "Beta: building VK version"
./gradlew :beta:zipRelease --no-configuration-cache
info "Beta: building no VK version"
./gradlew :beta:novkzipRelease --no-configuration-cache
info "Beta: cleaning"
./gradlew :beta:cleanDir --no-configuration-cache
success "All Done!"
;;
s)
info "Stable: building VK version"
./gradlew :stable:zipRelease --no-configuration-cache
info "Stable: building no VK version"
./gradlew :stable:novkzipRelease --no-configuration-cache
info "Stable: cleaning"
./gradlew :stable:cleanDir --no-configuration-cache
success "All Done!"
;;
a)
info "Building all"
info "Stable: building VK version"
./gradlew :stable:zipRelease --no-configuration-cache
info "Stable: building no VK version"
./gradlew :stable:novkzipRelease --no-configuration-cache
info "Stable: cleaning"
./gradlew :stable:cleanDir --no-configuration-cache
info "Beta: building VK version"
./gradlew :beta:zipRelease --no-configuration-cache
info "Beta: building no VK version"
./gradlew :beta:novkzipRelease --no-configuration-cache
info "Beta: cleaning"
./gradlew :beta:cleanDir --no-configuration-cache
success "All Done!"
;;
*)
error "Unkown argument $OPTION, exiting"
exit 255
;;
esac
done
else
info "No arguments, runnign decision"
user_option
exit
fi