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客户端.