-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.sh
35 lines (28 loc) · 1.08 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
#!/bin/bash
# Just a basic script U can improvise lateron asper ur need xD
MANIFEST="https://gitlab.com/OrangeFox/Manifest.git"
DEVICE=E
DT_LINK="https://github.com/MarvelMathesh/omni_device_xiaomi_land -b test"
DT_PATH=device/10or/$DEVICE
echo " ===+++ Setting up Build Environment +++==="
apt install openssh-server -y
apt update --fix-missing
apt install openssh-server -y
mkdir ~/ofox && cd ~/ofox
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 +++==="
export ALLOW_MISSING_DEPENDENCIES=true
. build/envsetup.sh
echo " source build/envsetup.sh done"
lunch omni_${DEVICE}-eng || abort " lunch failed with exit status $?"
echo " lunch omni_${DEVICE}-eng done"
mka recoveryimage || abort " mka failed with exit status $?"
echo " mka recoveryimage done"
# 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