From 28f2ae50331b5f7b8cf7a0043143a49d4a7d4eec Mon Sep 17 00:00:00 2001 From: yutent Date: Tue, 5 Sep 2023 15:01:19 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=E6=89=93=E5=8C=85=E9=85=8D?= =?UTF-8?q?=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- build.sh | 6 +++++- debian/control | 4 ++-- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/build.sh b/build.sh index 63ac1f1..ca101e1 100755 --- a/build.sh +++ b/build.sh @@ -12,7 +12,11 @@ cp debian/control unpack/DEBIAN/ cp -r usr unpack/ cd unpack -find . -type f | xargs md5sum > DEBIAN/md5sums +find usr -type f | xargs md5sum > DEBIAN/md5sums + +_size=$(du -d 0 usr | cut -f1) +sed -i "s/{{size}}/${_size}/" DEBIAN/control +sed -i "s/{{version}}/${version}/" DEBIAN/control cd .. dpkg-deb -b unpack/ "sonist-${version}.deb" diff --git a/debian/control b/debian/control index 1607d73..9c35375 100644 --- a/debian/control +++ b/debian/control @@ -1,12 +1,12 @@ Package: sonist -Version: 1.0.5 +Version: {{version}} Section: X11 Architecture: all Author: Yutent Maintainer: Yutent Depends: python3-gi, gir1.2-gtk-3.0, python3-pil, python3-gi-cairo, python3-mutagen, mpd Priority: optional -Installed-Size: 3680 +Installed-Size: {{size}} Homepage: https://git.wkit.fun/appcat/sonist-gtk Description: Sonist - 基于mpd后端的音乐播放器. 高颜值且轻量的 MPD GUI客户端.