更新动态计算包体积

master
yutent 2023-05-22 06:10:49 +00:00
parent 7f27f1a4ca
commit 987b28957d
4 changed files with 10 additions and 4 deletions

View File

@ -45,11 +45,13 @@ cd ./unpack
find usr/ -type f | xargs md5sum > DEBIAN/md5sums
IFS=$'\t' read -ra size <<< "$(du -d 0)"
echo """
Package: bun
Version: ${version}
Section: devlop
Installed-Size: 90324
Installed-Size: ${size[0]}
Architecture: amd64
Maintainer: Yutent <yutent.io@gmail.com>
Priority: optional

View File

@ -104,6 +104,7 @@ echo "修正完成, 计算文件md5..."
cd ./unpack
find usr/ -type f | xargs md5sum > DEBIAN/md5sums
IFS=$'\t' read -ra size <<< "$(du -d 0)"
echo """
Package: dingtalk
@ -111,7 +112,7 @@ Version: ${version}
Architecture: amd64
Maintainer: Yutent <yutent.io@gmail.com>
Depends: libgtk2.0-0
Installed-Size: 847276
Installed-Size: ${size[0]}
Section: chat
Priority: optional
Homepage: https://gov.dingtalk.com

View File

@ -122,12 +122,14 @@ cd ./unpack
find opt/ -type f | xargs -I {} md5sum {} > DEBIAN/md5sums
find usr/ -type f | xargs md5sum >> DEBIAN/md5sums
IFS=$'\t' read -ra size <<< "$(du -d 0)"
echo """
Package: linuxqq
Version: ${version}
Architecture: amd64
Maintainer: Yutent <yutent.io@gmail.com>
Installed-Size: 412821
Installed-Size: ${size[0]}
Depends: libgtk-3-0, libnotify4, libnss3, libxss1, libxtst6, xdg-utils, libatspi2.0-0, libuuid1, libsecret-1-0
Recommends: libappindicator3-1
Section: chat

View File

@ -46,6 +46,7 @@ echo "复制完成, 计算文件md5..."
cd ./unpack
find usr/ -type f | xargs md5sum > DEBIAN/md5sums
IFS=$'\t' read -ra size <<< "$(du -d 0)"
echo """
Package: neovim
@ -57,7 +58,7 @@ Replaces: neovim-runtime (<= 0.7.2-7)
Maintainer: Yutent <yutent.io@gmail.com>
Priority: optional
Section: devel
Installed-Size: 36328
Installed-Size: ${size[0]}
Description: heavily refactored vim fork
Neovim is a fork of Vim focused on modern code and features, rather than
running in legacy environments.