From f479510217fea9a161a7a6a28ce8d99bcafb6f3d Mon Sep 17 00:00:00 2001 From: gfdgd_xi <3025613752@qq.com> Date: Mon, 13 May 2024 22:02:50 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- build_action.sh | 7 +++++++ build_action_xanmod.sh | 7 +++++++ 2 files changed, 14 insertions(+) diff --git a/build_action.sh b/build_action.sh index 7dfef25..0bc3757 100644 --- a/build_action.sh +++ b/build_action.sh @@ -76,6 +76,11 @@ scripts/config --set-val DEBUG_INFO_NONE y # build deb packages CPU_CORES=$(($(grep -c processor < /proc/cpuinfo)*2)) sudo env DEBEMAIL="gfdgd xi <3025613752@qq.com>" make bindeb-pkg -j"$CPU_CORES" +# 移动 deb +mkdir /tmp/deb-result +cp ../*.deb /tmp/deb-result +rm /tmp/deb-result/linux-libc-dev*.deb +rm /tmp/deb-result/*dbg*.deb if [[ $2 == 1 ]]; then # move deb packages to artifact dir @@ -135,6 +140,7 @@ EOF #./build.py ./move-letter-path.py ../dclc-kernel/$SHOWVERSION/*.deb ./move-letter-path.py ../dclc-kernel/head/*.deb + ./move-letter-path.py /tmp/deb-result/*.deb touch l/linux-headers-$VERSION-amd64-gfdgdxi-desktop-hwe/lock rm -rfv l/linux-libc-dev/ git add . @@ -202,6 +208,7 @@ EOF #./build.py ./move-letter-path.py ../dclc-kernel/$VERSION/*.deb ./move-letter-path.py ../dclc-kernel/head/*.deb + ./move-letter-path.py /tmp/deb-result/*.deb rm -rfv l/linux-libc-dev/ touch l/linux-headers-$VERSION-amd64-gfdgdxi-desktop/lock git add . diff --git a/build_action_xanmod.sh b/build_action_xanmod.sh index 1008fd5..9e73ad1 100644 --- a/build_action_xanmod.sh +++ b/build_action_xanmod.sh @@ -65,6 +65,11 @@ scripts/config --set-val DEBUG_INFO_NONE y # build deb packages CPU_CORES=$(($(grep -c processor < /proc/cpuinfo)*2)) sudo env DEBEMAIL="gfdgd xi <3025613752@qq.com>" make bindeb-pkg -j"$CPU_CORES" +# 移动 deb +mkdir /tmp/deb-result +cp ../*.deb /tmp/deb-result +rm /tmp/deb-result/linux-libc-dev*.deb +rm /tmp/deb-result/*dbg*.deb if [[ $2 == 1 ]]; then # move deb packages to artifact dir cd .. @@ -122,6 +127,7 @@ EOF #./build.py ./move-letter-path.py ../dclc-kernel/$SHOWVERSION/*.deb ./move-letter-path.py ../dclc-kernel/head/*.deb + ./move-letter-path.py /tmp/deb-result/*.deb rm -rfv l/linux-libc-dev/ touch l/linux-headers-$VERSION-amd64-xanmod-gfdgdxi-desktop-hwe/lock git add . @@ -187,6 +193,7 @@ EOF #./build.py ./move-letter-path.py ../dclc-kernel/$VERSION/*.deb ./move-letter-path.py ../dclc-kernel/head/*.deb + ./move-letter-path.py /tmp/deb-result/*.deb rm -rfv l/linux-libc-dev/ touch l/linux-headers-$VERSION-amd64-xanmod-gfdgdxi-desktop/lock git add .