-
Notifications
You must be signed in to change notification settings - Fork 0
/
tg.sh
96 lines (91 loc) · 2.01 KB
/
tg.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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
#! /usr/bin/env bash
export PATH=$PATH:~/bin/:/usr/bin
export DEBIAN_FRONTEND=noninteractive
export TZ=Asia/Jakarta
export TIME=$(date +"%S-%F")
export ZIPNAME=GoGreen-Leaf-Q-${TIME}
sudo ln -fs /usr/share/zoneinfo/Asia/Jakarta /etc/localtime
sudo dpkg-reconfigure --frontend noninteractive tzdata
sudo apt-get install -y tzdata
sudo apt-get update -qq && \
sudo apt-get install --no-install-recommends -y \
autoconf \
autogen \
automake \
autotools-dev \
bc \
binutils \
binutils-aarch64-linux-gnu \
binutils-arm-linux-gnueabi \
bison \
bzip2 \
ca-certificates \
coreutils \
cmake \
curl \
expect \
flex \
g++ \
gawk \
gcc \
git \
gnupg \
gperf \
help2man \
lftp \
libc6-dev \
libelf-dev \
libgomp1-* \
liblz4-tool \
libncurses5-dev \
libssl-dev \
libstdc++6 \
libtool \
libtool-bin \
m4 \
make \
nano \
openjdk-8-jdk \
openssh-client \
openssl \
ovmf \
patch \
pigz \
python3 \
python \
rsync \
shtool \
subversion \
tar \
texinfo \
tzdata \
u-boot-tools \
unzip \
wget \
xz-utils \
zip \
zlib1g-dev \
zstd
git clone https://github.com/areyoudeveloper/anykernel3-spectrum
git clone https://github.com/najahiiii/aarch64-linux-gnu.git -b linaro8-20190402
echo bulding!!
export ARCH=arm64
export SUBARCH=arm64
export KBUILD_BUILD_USER=TEA
export CROSS_COMPILE=/home/runner/work/GG_kernel_msm8917/GG_kernel_msm8917/aarch64-linux-gnu/bin/aarch64-linux-gnu-
make mrproper
mkdir -p out
make O=out rolex_defconfig
make O=out -j$(nproc --all) -l$(nproc --all) | tee /home/runner/log.txt
curl -F document=@/home/runner/log.txt "https://api.telegram.org/bot$TOKEN/sendDocument" \
-F chat_id=$CID\
-F "disable_web_page_preview=true" \
-F "parse_mode=html"
cp out/arch/arm64/boot/Image.gz-dtb anykernel3-spectrum/
cd anykernel3-spectrum/
zip -r9 ${ZIPNAME}.zip * -x build.sh
md5sum ${ZIPNAME}.zip
curl -F document=@$ZIPNAME.zip "https://api.telegram.org/bot$TOKEN/sendDocument" \
-F chat_id=$CID\
-F "disable_web_page_preview=true" \
-F "parse_mode=html"