This commit is contained in:
2025-03-25 17:35:07 -07:00
parent 5433d237e9
commit d8701a2d9a

View File

@@ -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"