diff --git a/build.sh b/build.sh index aff5967..754b7d9 100755 --- a/build.sh +++ b/build.sh @@ -7,9 +7,9 @@ PKG_DIR="./chillcraftos-default-settings" PKG_SIZE=$(du -sk "$PKG_DIR" | cut -f1) # Update control file -sed -i "s/Installed-Size: INSTSIZE/Installed-Size: $PKG_SIZE/" "$PKG_DIR/DEBIAN/control" +sed -i "/^Installed-Size:/c\Installed-Size: $PKG_SIZE" "$PKG_DIR/DEBIAN/control" # Build the .deb package -dpkg-deb --build "$PKG_DIR" ../chillcraftos-default-settings.deb +dpkg-deb --build "$PKG_DIR" ./chillcraftos-default-settings.deb echo "Package built with Installed-Size: $PKG_SIZE KB"