-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathlolzkernel.sh
43 lines (30 loc) · 1.38 KB
/
lolzkernel.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
40
41
42
43
#!/usr/bin/env bash
set -euo pipefail
export DEBIAN_FRONTEND=noninteractive
LOLZ_DIR="$(pwd)"
# Github info
git config --global user.name "Jprimero15"
git config --global user.email "[email protected]"
# Inlined function to post a message
export BOT_MSG_URL="https://api.telegram.org/bot$TG_BOT_TOKEN/sendMessage"
function tg_post_msg() {
curl -s -X POST "$BOT_MSG_URL" -d chat_id="$TG_CHATID" \
-d "disable_web_page_preview=true" \
-d "parse_mode=html" \
-d text="$1"
}
# Send a notificaton to TG
tg_post_msg " <b>LOLZ KERNEL Compilation Started. </b>
<b>Some Informations about Build Types: </b>
<b>BUILT-IN WLAN: <code>This is for Android 10,11 and 12 AOSP Based Custom ROMs, e.g. CrDroid.</code></b>
<b>MODULE_WLAN: <code>This is for Android 10 MIUI Based ROMs and GSI. </code></b>
<b>For more questions just message on this group and mention Jprimero15 (DO NOT DIRECT MESSAGE HIM)</b> "
git clone https://github.com/Jprimero15/lolz_kernel_redmi8 -b v29-test5 --depth=1 $LOLZ_DIR/lolz
git clone https://Jprimero15:[email protected]/Jprimero15/lolzbuilder -b master $LOLZ_DIR/lolz/builder
# for AOSP based Script
cd $LOLZ_DIR/lolz
bash $LOLZ_DIR/lolz/builder/current_lolzbuilder.sh clanglto
bash $LOLZ_DIR/lolz/builder/current_lolzbuilder.sh ksu clanglto
# Send a notificaton to TG
tg_post_msg "<b>LOLZ KERNEL Compilation Completed</b>"
# End of Script