From 987b28957d6decbefe14cb6387b50e1c4581ff06 Mon Sep 17 00:00:00 2001 From: yutent Date: Mon, 22 May 2023 06:10:49 +0000 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=E5=8A=A8=E6=80=81=E8=AE=A1?= =?UTF-8?q?=E7=AE=97=E5=8C=85=E4=BD=93=E7=A7=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- bun/package.sh | 4 +++- dingtalk/package.sh | 3 ++- linuxqq/package.sh | 4 +++- neovim/package.sh | 3 ++- 4 files changed, 10 insertions(+), 4 deletions(-) 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.