fix: rename matter-base packages

This commit is contained in:
ngn
2024-08-12 03:07:34 +03:00
parent ff3245979e
commit 1a2593959e
3 changed files with 27 additions and 25 deletions

View File

@ -72,10 +72,10 @@ if [ $# -ne 2 ]; then
error "Please specify a release archive and a config directory"
exit 1
fi
archive="$(realpath "${1}")"
if [ ! -f "${archive}" ]; then
if [ ! -f "${archive}" ]; then
error "Archive file not found"
exit 1
fi
@ -158,22 +158,22 @@ for p2 in "${PKGS2[@]}"; do
done
info "Adding public keys"
matter-chroot "${tmpdir}" gpg --receive-keys $keys_str
matter-chroot "${tmpdir}" gpg --receive-keys $keys_str
check_retc "Failed to add public keys"
if [ ! -z "${PKGS1}" ]; then
info "Installing extra packages (1)"
matter-chroot "${tmpdir}" matt sync
check_retc "Sync failed"
matter-chroot "${tmpdir}" matt install --yes $pkgs1_str
matter-chroot "${tmpdir}" matt install --yes $pkgs1_str
check_retc "Install failed"
fi
info "Running build script"
echo "source /iso.sh && build" > "${tmpdir}/stager.sh"
matter-chroot "${tmpdir}" chmod +x /stager.sh
matter-chroot "${tmpdir}" /stager.sh
echo "source /iso.sh && build" > "${tmpdir}/stager.sh"
matter-chroot "${tmpdir}" chmod +x /stager.sh
matter-chroot "${tmpdir}" /stager.sh
check_ret "Build script failed"
rm "${tmpdir}/stager.sh"
@ -187,7 +187,7 @@ popd > /dev/null
if [ ! -z "${PKGS2}" ]; then
info "Installing extra packages (2)"
matter-chroot "${tmpdir}" MP_YES=1 matt install --yes $pkgs2_str
matter-chroot "${tmpdir}" matt install --yes $pkgs2_str
check_ret "Install failed"
fi