补充backport构建

Signed-off-by: gfdgd_xi <3025613752@qq.com>
This commit is contained in:
2026-02-11 10:18:03 +08:00
parent 3bb1ee694b
commit 38dbe7a12f
3 changed files with 19 additions and 0 deletions
@@ -62,6 +62,8 @@ if [[ $7 == "backport" ]]; then
sudo cp -rv .github/workflows/90bookworm-backports $bottlePath/etc/apt/preferences.d/
echo "deb [trusted=true] https://repo.gxde.top/gxde-os/tianlu-bpo ./" >> $bottlePath/etc/apt/sources.list.d/gxde-os-bpo.list
fi
sudo mkdir -p $bottlePath/sources-list
sudo cp -v .github/workflows/sources-*.list $bottlePath/sources-list
# 配置 git
#echo "deb [trusted=true] https://deb.debian.org/debian-ports/ unreleased main" | sudo tee $bottlePath/etc/apt/sources.list.d/debian-unreleased.list
sudo chroot $bottlePath apt update
@@ -33,6 +33,9 @@ fi
#fi
apt install -f -y
apt install debian-ports-archive-keyring debian-archive-keyring -y
if [[ -f /sources-list/sources-$1.list ]]; then
cp /sources-list/sources-$1.list /etc/apt/sources.list.d -v
fi
for i in {1..8};
do
apt update -o Acquire::Check-Valid-Until=false -y
@@ -59,6 +62,7 @@ apt install dpkg-dev sudo debian-ports-archive-keyring debian-archive-keyring de
# 如果是 Debian10 就需要安装 Python3 的依赖
#apt build-dep python3.7 -y
# 解包 gxde-desktop-base
apt download gxde-desktop-base
dpkg -x gxde-desktop-base_*.deb /
rm gxde-desktop-base_*.deb -rfv
@@ -0,0 +1,13 @@
# 默认注释了源码镜像以提高 apt update 速度,如有需要可自行取消注释
deb https://deb.debian.org/debian/ trixie main contrib non-free non-free-firmware
# deb-src https://deb.debian.org/debian/ trixie main contrib non-free non-free-firmware
deb https://deb.debian.org/debian/ trixie-updates main contrib non-free non-free-firmware
# deb-src https://deb.debian.org/debian/ trixie-updates main contrib non-free non-free-firmware
deb https://deb.debian.org/debian/ trixie-backports main contrib non-free non-free-firmware
# deb-src https://deb.debian.org/debian/ trixie-backports main contrib non-free non-free-firmware
# 以下安全更新软件源包含了官方源与镜像站配置,如有需要可自行修改注释切换
deb https://security.debian.org/debian-security trixie-security main contrib non-free non-free-firmware
# deb-src https://security.debian.org/debian-security trixie-security main contrib non-free non-free-firmware