From 4affe87ec217c024720cfac4759c318daf2771cb Mon Sep 17 00:00:00 2001 From: Vishal Rao Date: Mon, 15 Sep 2025 19:10:01 +0530 Subject: [PATCH] git clone latest Calamares release Fixes #212 --- mkosi.postinst.chroot | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/mkosi.postinst.chroot b/mkosi.postinst.chroot index 315c4c9..69c79ba 100755 --- a/mkosi.postinst.chroot +++ b/mkosi.postinst.chroot @@ -27,7 +27,8 @@ pacman --remove --noconfirm packagekit libpackagekit-glib archlinux-appstream-da # Calamares cd /tmp -git clone --depth 1 https://codeberg.org/Calamares/calamares.git +LATEST_RELEASE=$(curl -s "https://codeberg.org/api/v1/repos/Calamares/calamares/releases" | jq -r '.[0].tag_name') +git clone --branch "$LATEST_RELEASE" --depth 1 https://codeberg.org/Calamares/calamares.git cmake -S calamares -B calamares/build -DCMAKE_BUILD_TYPE=MinSizeRel -DCMAKE_INSTALL_PREFIX=/usr -DBUILD_TESTING=OFF -DWITH_QT6=ON cmake --build calamares/build "-j$(nproc)" DESTDIR=/live/ cmake --install calamares/build