From f3290b2b5b8fcb0745807f5c0c671f6f700078e1 Mon Sep 17 00:00:00 2001 From: Skylar Ittner Date: Wed, 21 Jul 2021 01:01:05 -0600 Subject: [PATCH] Debian build: add Installed-Size --- build/debian/DEBIAN/control | 1 + build/scripts/debian_build.sh | 5 +++++ 2 files changed, 6 insertions(+) diff --git a/build/debian/DEBIAN/control b/build/debian/DEBIAN/control index 5a8e563..0778eb5 100644 --- a/build/debian/DEBIAN/control +++ b/build/debian/DEBIAN/control @@ -1,5 +1,6 @@ Package: ipentool Version: VERSION +Installed-Size: INSTALLEDSIZE Maintainer: Netsyms Technologies Section: web Homepage: https://netsyms.com/apps/ipentool diff --git a/build/scripts/debian_build.sh b/build/scripts/debian_build.sh index 9c3a6a3..49f8b4e 100755 --- a/build/scripts/debian_build.sh +++ b/build/scripts/debian_build.sh @@ -2,10 +2,15 @@ # $1 is the app location, $2 is the svg icon, $3 is the version number mkdir -p out rm -rf debian/usr/share/ipentool + mkdir -p debian/usr/share/ipentool mkdir -p debian/usr/share/doc/ipentool + rsync -rv "$1" debian/usr/share/ipentool sed -i "s/VERSION/$3/" debian/DEBIAN/control cp debian/DEBIAN/copyright debian/usr/share/doc/ipentool/ cp "$2" debian/usr/share/ipentool/logo.svg + +SIZE=$(du -s --apparent-size | cut -f1) +sed -i "s/INSTALLEDSIZE/$SIZE/" debian/DEBIAN/control dpkg-deb -b debian "out/ipentool_$3_all.deb"