更新配置文件

This commit is contained in:
2024-05-03 23:01:35 +08:00
parent 708b984bec
commit 1d209b976b
9 changed files with 68 additions and 84 deletions

View File

@@ -20,8 +20,14 @@ SHOWVERSION=$VERSION
if [[ $2 == 1 ]]; then
SHOWVERSION=$VERSION-hwe
fi
curl https://github.com/gfdgd-xi/dclc-kernel/raw/main/$SHOWVERSION/index.html | grep 404
if [[ $? != 0 ]]; then
if [[ $2 == 1 ]]; then
curl https://github.com/gfdgd-xi/gxde-kernel-manager/raw/main/l/linux-headers-$VERSION-amd64-xanmod-gfdgdxi-desktop-hwe/lock | grep 404
result=$?
else
curl https://github.com/gfdgd-xi/gxde-kernel-manager/raw/main/l/linux-headers-$VERSION-amd64-xanmod-gfdgdxi-desktop/lock | grep 404
result=$?
fi
if [[ $result != 0 ]]; then
exit
fi
# install dep
@@ -65,8 +71,8 @@ if [[ $2 == 1 ]]; then
cd ..
mkdir "artifact"
#cp ./*.deb artifact/
git clone https://gfdgd-xi:$PASSWORD@github.com/gfdgd-xi/dclc-kernel --depth=1
#cd dclc-kernel
git clone https://gfdgd-xi:$PASSWORD@github.com/gfdgd-xi/gxde-linux-kernel --depth=1
mkdir dclc-kernel
mkdir dclc-kernel/$SHOWVERSION
rm -rfv *dbg*.deb
mv ./*.deb dclc-kernel/$SHOWVERSION
@@ -84,7 +90,7 @@ Certainty: possible
Check: binaries
Type: binary, udeb
Priority: optional
Depends: linux-headers-$VERSION-amd64-desktop-hwe, linux-image-$VERSION-amd64-desktop-hwe
Depends: linux-headers-$VERSION-amd64-xanmod-gfdgdxi-desktop-hwe, linux-image-$VERSION-amd64-xanmod-gfdgdxi-desktop-hwe
Section: utils
Installed-Size: 0
Description: 内核(虚包)
@@ -103,26 +109,18 @@ Certainty: possible
Check: binaries
Type: binary, udeb
Priority: optional
Depends: linux-headers-$VERSION-amd64-desktop-hwe, linux-image-$VERSION-amd64-desktop-hwe
Depends: linux-headers-$VERSION-amd64-xanmod-gfdgdxi-desktop-hwe, linux-image-$VERSION-amd64-xanmod-gfdgdxi-desktop-hwe
Section: utils
Installed-Size: 0
Description: 内核(虚包)
EOF
dpkg-deb -Z xz -b deb linux-kernel-dclc-gfdgdxi-xanmod-hwe_${VERSION}_amd64.deb
dpkg-deb -Z xz -b deb-$MAINVERSION-xanmod linux-kernel-dclc-gfdgdxi-xanmod-$MAINVERSION-hwe_${VERSION}_amd64.deb
cd ..
bash ./repack-zstd --scan .
rm Packages || echo "Failed to remove packages file"
rm Packages.gz || echo "Failed to remove packages.gz file"
rm Release || echo "Failed to remove release file"
rm Release.gpg || echo "Failed to remove release.gpg file"
rm InRelease || echo "Failed to remove inrelease file"
dpkg-scanpackages --multiversion . > Packages
gzip -k -f Packages
apt-ftparchive release . > Release
gpg --default-key "3025613752@qq.com" --batch --pinentry-mode="loopback" --passphrase="$KEYPASSWORD" -abs -o - Release > Release.gpg || error "failed to sign Release.gpg with gpg "
gpg --default-key "3025613752@qq.com" --batch --pinentry-mode="loopback" --passphrase="$KEYPASSWORD" --clearsign -o - Release > InRelease || error "failed to sign InRelease with gpg"
./build.py
cd ../../gxde-linux-kernel
#bash ./repack-zstd --scan .
#./build.py
./move-letter-path.py ../dclc-kernel/$VERSION/*.deb
touch l/linux-headers-$VERSION-amd64-xanmod-gfdgdxi-desktop-hwe/lock
git add .
#git pull
git config --global user.email 3025613752@qq.com
@@ -134,7 +132,7 @@ else
cd ..
mkdir "artifact"
#cp ./*.deb artifact/
git clone https://gfdgd-xi:$PASSWORD@github.com/gfdgd-xi/dclc-kernel --depth=1
git clone https://gfdgd-xi:$PASSWORD@github.com/gfdgd-xi/gxde-kernel-manager --depth=1
#cd dclc-kernel
mkdir dclc-kernel/$VERSION
rm -rfv *dbg*.deb
@@ -153,7 +151,7 @@ Certainty: possible
Check: binaries
Type: binary, udeb
Priority: optional
Depends: linux-headers-$VERSION-amd64-desktop, linux-image-$VERSION-amd64-desktop
Depends: linux-headers-$VERSION-amd64-xanmod-gfdgdxi-desktop, linux-image-$VERSION-amd64-xanmod-gfdgdxi-desktop
Section: utils
Installed-Size: 0
Description: 内核(虚包)
@@ -172,26 +170,18 @@ Certainty: possible
Check: binaries
Type: binary, udeb
Priority: optional
Depends: linux-headers-$VERSION-amd64-desktop, linux-image-$VERSION-amd64-desktop
Depends: linux-headers-$VERSION-amd64-xanmod-desktop, linux-image-$VERSION-amd64-xanmod-desktop
Section: utils
Installed-Size: 0
Description: 内核(虚包)
EOF
dpkg-deb -Z xz -b deb linux-kernel-dclc-gfdgdxi-xanmod_${VERSION}_amd64.deb
dpkg-deb -Z xz -b deb-$MAINVERSION-xanmod linux-kernel-dclc-gfdgdxi-xanmod-$MAINVERSION_${VERSION}_amd64.deb
cd ..
bash ./repack-zstd --scan .
rm Packages || echo "Failed to remove packages file"
rm Packages.gz || echo "Failed to remove packages.gz file"
rm Release || echo "Failed to remove release file"
rm Release.gpg || echo "Failed to remove release.gpg file"
rm InRelease || echo "Failed to remove inrelease file"
dpkg-scanpackages --multiversion . > Packages
gzip -k -f Packages
apt-ftparchive release . > Release
gpg --default-key "3025613752@qq.com" --batch --pinentry-mode="loopback" --passphrase="$KEYPASSWORD" -abs -o - Release > Release.gpg || error "failed to sign Release.gpg with gpg "
gpg --default-key "3025613752@qq.com" --batch --pinentry-mode="loopback" --passphrase="$KEYPASSWORD" --clearsign -o - Release > InRelease || error "failed to sign InRelease with gpg"
./build.py
cd ../../gxde-linux-kernel
#bash ./repack-zstd --scan .
#./build.py
./move-letter-path.py ../dclc-kernel/$VERSION/*.deb
touch l/linux-headers-$VERSION-amd64-xanmod-gfdgdxi-desktop/lock
git add .
#git pull
git config --global user.email 3025613752@qq.com