3rdparty/unbootstrap.sh: Add _bootstrap to the package versions.

This makes it clear that the package was made by the bootstrap
process.

Also compress the packages with zlib, so that zstd isn't needed.
This commit is contained in:
Augustin Cavalier
2026-04-23 15:54:03 -04:00
parent 70d41befc2
commit d32e4e0e00
+6 -4
View File
@@ -7,11 +7,12 @@
# these package before we can get the bootstrap image to run reliably enough # these package before we can get the bootstrap image to run reliably enough
# to actually bootstrap the packages. # to actually bootstrap the packages.
set -e
mkdir -p work mkdir -p work
cd work cd work
for package in ../packages/*.hpkg for package in ../packages/*.hpkg; do
do
echo --- Processing $package --- echo --- Processing $package ---
echo Cleaning work directory... echo Cleaning work directory...
rm -rf * rm -rf *
@@ -19,7 +20,8 @@ do
package extract $package package extract $package
echo Converting .PackageInfo... echo Converting .PackageInfo...
sed -i .PackageInfo -e s/_bootstrap//g sed -i .PackageInfo -e s/_bootstrap//g
name=`basename $package|sed -e s/_bootstrap//g` sed -i .PackageInfo -e '/^version/ s/-/_bootstrap-/1'
name=$(basename $package | sed -e s/_bootstrap// | sed 's/-/_bootstrap-/2')
# If this is a source package, we need to correct the source directory. # If this is a source package, we need to correct the source directory.
if [[ $name = *"-source.hpkg" ]]; then if [[ $name = *"-source.hpkg" ]]; then
oldpkgname=$(basename $package | sed -e s/-source.hpkg//g | sed -e s/_source//g) oldpkgname=$(basename $package | sed -e s/-source.hpkg//g | sed -e s/_source//g)
@@ -32,5 +34,5 @@ do
fi fi
fi fi
echo Regenerating package... echo Regenerating package...
package create ../$name package create -z zlib ../$name
done done