diff --git a/bun/package.sh b/bun/package.sh index 463ede4..1737806 100755 --- a/bun/package.sh +++ b/bun/package.sh @@ -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 Priority: optional diff --git a/dingtalk/package.sh b/dingtalk/package.sh index f499780..304ed0c 100755 --- a/dingtalk/package.sh +++ b/dingtalk/package.sh @@ -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 Depends: libgtk2.0-0 -Installed-Size: 847276 +Installed-Size: ${size[0]} Section: chat Priority: optional Homepage: https://gov.dingtalk.com diff --git a/linuxqq/package.sh b/linuxqq/package.sh index 831e85d..3c19ac3 100755 --- a/linuxqq/package.sh +++ b/linuxqq/package.sh @@ -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 -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 diff --git a/neovim/package.sh b/neovim/package.sh index d84442d..99f7641 100755 --- a/neovim/package.sh +++ b/neovim/package.sh @@ -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 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.