diff --git a/.github/workflows/configure-building-enviroment-base-system.sh b/.github/workflows/configure-building-enviroment-base-system.sh index 07532f1..d69ffb6 100755 --- a/.github/workflows/configure-building-enviroment-base-system.sh +++ b/.github/workflows/configure-building-enviroment-base-system.sh @@ -59,9 +59,16 @@ sudo chroot $bottlePath git clone $4 #--depth=1 sudo mv $bottlePath/$(basename $3)/.github/workflows/* $bottlePath/$(basename $4)/.github/workflows -v # 修改版本号 #sudo sed -i "s/) UNRELEASED; urgency=medium/~$2) UNRELEASED; urgency=medium/g" $bottlePath/deep-wine-runner-qemu-system/debian/changelog -if [[ $2 == "loongnix" ]]; then - env gitPath=$(basename $4) bash .github/workflows/run-command-in-chroot.sh .github/workflows/configure-building-enviroment.sh meimei -else - env gitPath=$(basename $4) bash .github/workflows/run-command-in-chroot.sh .github/workflows/configure-building-enviroment.sh -fi +case $2 in + "trixie") + env gitPath=$(basename $4) bash .github/workflows/run-command-in-chroot.sh .github/workflows/configure-building-enviroment.sh zhuangzhuang + ;; + "loongnix") + env gitPath=$(basename $4) bash .github/workflows/run-command-in-chroot.sh .github/workflows/configure-building-enviroment.sh meimei + ;; + *) + env gitPath=$(basename $4) bash .github/workflows/run-command-in-chroot.sh .github/workflows/configure-building-enviroment.sh + ;; +esac + exit 0 \ No newline at end of file diff --git a/.github/workflows/configure-building-enviroment.sh b/.github/workflows/configure-building-enviroment.sh index 53bc73d..c58632e 100755 --- a/.github/workflows/configure-building-enviroment.sh +++ b/.github/workflows/configure-building-enviroment.sh @@ -17,11 +17,13 @@ export DEBIAN_FRONTEND=noninteractive # 防止卡 tzdate # 写入 GXDE 源 # 判断是否是 Ubuntu #isUbuntu=$(cat /etc/os-release | grep Ubuntu | wc -l) -if [[ $1 == "meimei" ]]; then - echo "deb [trusted=true] https://repo.gxde.org/gxde-os/meimei ./" >> /etc/apt/sources.list.d/gxde-os.list -else + + +if [[ $1 == "" ]] || [[ $1 == "tianlu" ]]; then echo "deb [trusted=true] https://repo.gxde.org/gxde-os/tianlu ./" >> /etc/apt/sources.list.d/gxde-os.list echo "deb [trusted=true] https://repo.gxde.org/gxde-os/bixie ./" >> /etc/apt/sources.list.d/gxde-os.list +else + echo "deb [trusted=true] https://repo.gxde.org/gxde-os/$1 ./" >> /etc/apt/sources.list.d/gxde-os.list fi #if [[ $(dpkg --print-architecture) == "loong64" ]]; then # echo "deb [trusted=true] https://deb.debian.org/debian-ports/ unreleased main" > /etc/apt/sources.list.d/debian-unreleased.list