Skip to content

Commit

Permalink
fix: deepin build
Browse files Browse the repository at this point in the history
  • Loading branch information
msojocs committed Jul 27, 2024
1 parent 5aaa0c9 commit 9157273
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
8 changes: 7 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -321,7 +321,7 @@ jobs:
name: Build Deepin Package
needs:
- build-app
runs-on: ubuntu-latest
runs-on: ubuntu-20.04

strategy:
matrix:
Expand Down Expand Up @@ -376,6 +376,7 @@ jobs:
fi
dpkg --version
if [[ "$BUILD_ARCH" == loong* ]];then
echo "build loong"
export DOCKER_UID=$(id -u)
export DOCKER_GID=$(id -g)
cat /etc/passwd
Expand All @@ -385,7 +386,12 @@ jobs:
exit $(cat tmp/exit_code)
fi
else
echo "build simple"
tools/build-deepin.sh ${{ steps.tag.outputs.tag }}
mkdir -p info/DEBIAN
dpkg -e ./tmp/build/io.github.msojocs.bilibili_*.deb info/DEBIAN
ls -l info/DEBIAN
rm -rf info
fi
- name: Upload artifact
Expand Down
2 changes: 1 addition & 1 deletion tools/build-deepin.sh
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ notice "架构:$BUILD_ARCH"
if [ "$BUILD_ARCH" != "" ];then
sed -i "s#amd64#${BUILD_ARCH}#" "$build_dir/debian/control"
fi

ls -l "$build_dir/debian"
# desktop
\cp -rf "$root_dir/res/bilibili.desktop" "$base_dir/entries/applications/$package_name.desktop"
sed -i "s#Icon=bilibili#Icon=$package_name#" "$base_dir/entries/applications/$package_name.desktop"
Expand Down

0 comments on commit 9157273

Please sign in to comment.