This commit is contained in:
2023-07-01 12:48:23 +08:00
parent 544707a406
commit 1703f55532
8 changed files with 11307 additions and 4 deletions

View File

@@ -5,9 +5,10 @@ sudo apt install python3-pyquery -y
python3 get-newest-version.py $1
#VERSION=$(grep 'Kernel Configuration' < config | awk '{print $3}')
# add deb-src to sources.list
MAINVERSION=$1
VERSION=`cat /tmp/kernelversion.txt`
URL=`cat /tmp/kernelurl.txt`
MAINVERSION=`expr substr $VERSION 1 1`
curl https://github.com/gfdgd-xi/dclc-kernel/raw/main/$VERSION/index.html | grep 404
if [[ $? != 0 ]]; then
exit
@@ -21,7 +22,7 @@ cd "${GITHUB_WORKSPACE}" || exit
# download kernel source
wget $URL
tar -xf linux-"$VERSION".tar.xz
tar -xvf linux-"$VERSION".tar.xz
cd linux-"$VERSION" || exit
# copy config file
@@ -50,7 +51,7 @@ mv ./*.deb dclc-kernel/$VERSION
cd dclc-kernel/$VERSION
cd ..
cd head
cat > deb-/DEBIAN/control <<EOF
cat > deb/DEBIAN/control <<EOF
Package: linux-kernel-dclc-gfdgdxi
Version: $VERSION
Maintainer: gfdgd xi <3025613752@qq.com>
@@ -66,6 +67,9 @@ Section: utils
Installed-Size: 0
Description: 内核(虚包)
EOF
if [[ ! -d deb-$MAINVERSION ]]; then
mkdir -pv deb-$MAINVERSION/DEBIAN
fi
cat > deb-$MAINVERSION/DEBIAN/control <<EOF
Package: linux-kernel-dclc-gfdgdxi-$MAINVERSION
Version: $VERSION
@@ -88,7 +92,8 @@ cd ..
bash ./repack-zstd --scan .
./build.py
git add .
git pull
git config --global user.email 3025613752@qq.com
git config --global user.name gfdgd-xi
git commit -m 提交$VERSION
git push
git push