forked from FutureDrones/ofox
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.sh
More file actions
35 lines (29 loc) · 866 Bytes
/
build.sh
File metadata and controls
35 lines (29 loc) · 866 Bytes
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
#!/bin/bash
# This, is the main point, where all things change
cd /drone/src/work/fox_10.0
mkdir -p device/xiaomi
cd device/xiaomi
# Clone tree START
git clone https://github.com/piraterex/device_xiaomi_aliothin-ofox aliothin # Clone your trees here
# CLONE TREE END
# VARIABLES, DEFINE THEM ELSE YOU'RE GAY
DEVICE=aliothin
TARGET=recoveryimage
# END VARIABLES
cd /drone/src/work/fox_10.0
source build/envsetup.sh
export ALLOW_MISSING_DEPENDENCIES=true
export FOX_USE_TWRP_RECOVERY_IMAGE_BUILDER=1
export LC_ALL="C"
lunch omni_$DEVICE-eng && mka $TARGET
# Upload
cd out/target/product/$DEVICE/
touch links.txt
echo "Recovery image on wetransfer: " >> links.txt
transfer wet recovery.img | grep Download >> links.txt
echo "Recovery zip on wetransfer: " >> links.txt
transfer wet Orange*.zip | grep Download >> links.txt
echo ""
echo ""
echo ""
cat links.txt