-
Notifications
You must be signed in to change notification settings - Fork 3
/
Build.sh
executable file
·42 lines (33 loc) · 1.18 KB
/
Build.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
#!/bin/bash
#
# Copyright © 2017, Ayush Rathore "AyushR1" <[email protected]>
#
# If Anyone Use this Scrips Maintain Proper Credits
#
# This software is licensed under the terms of the GNU General Public
# License version 2, as published by the Free Software Foundation, and
# may be copied, distributed, and modified under those terms.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# Please maintain this if you use this script or any part of it
ROOT=$PWD
BUILD='/home/ayushr1/AR_Beast/KernelAdiutor-Mod/app/build/outputs/apk'
OUT='/home/ayushr1/AR_Beast/out'
APK='/home/ayushr1/AR_Beast/KernelAdiutor-Mod/app/build/outputs/apk/debug/app-debug.apk'
blue='\033[0;34m'
yellow='\033[0;33m'
red='\033[0;31m'
echo -e "$blue***********************************************"
echo " Building KA-Mod "
echo -e "***********************************************"
./gradlew clean build
if ! [ -a $APK ];
then
echo -e "$red Fix the errors!"
exit 1
fi
echo "**** Done. ****"