-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.sh
33 lines (26 loc) · 931 Bytes
/
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
#!/bin/bash
# Just a basic script U can improvise lateron asper ur need xD
MANIFEST="git://github.com/SHRP/platform_manifest_twrp_omni.git -b v3_11.0"
DEVICE=juice
DT_LINK="http://github.com/Joaquin-000/device_xiaomi_juice-shrp"
DT_PATH=device/xiaomi/$DEVICE
echo " ===+++ Setting up Build Environment +++==="
apt install openssh-server -y
apt update --fix-missing
apt install openssh-server -y
mkdir ~/shrp && cd ~/shrp
echo " ===+++ Syncing Recovery Sources +++==="
repo init --depth=1 -u $MANIFEST
repo sync
repo sync
git clone --depth=1 $DT_LINK $DT_PATH
echo " ===+++ Building Recovery +++==="
. build/envsetup.sh
export ALLOW_MISSING_DEPENDENCIES=true
lunch omni_${DEVICE}-eng
mka recoveryimage
# Upload zips & recovery.img (U can improvise lateron adding telegram support etc etc)
echo " ===+++ Uploading Recovery +++==="
cd out/target/product/$DEVICE
curl -sL https://git.io/file-transfer | sh
./transfer wet *.zip