Skip to content

Free, open-source 3D sculpting for Linux, macOS and Windows: dense meshes, remeshing, painting, built-in AI (image/text to 3D), Send to Unreal, game-ready LODs, Gaussian splats and OpenUSD.

release.sh check: .SRCINFO compared by its fields (makepkg cost the beta test 2 s a call; CI's arch.yml diffs it in full)

islandmedc38b4cc57db3
diff --git a/scripts/release.sh b/scripts/release.sh
index 64ca70c8..1b4d8b2f 100755
--- a/scripts/release.sh
+++ b/scripts/release.sh
@@ -339,8 +339,13 @@ preflight() {
pk=packaging/arch/PKGBUILD
grep -q '^pkgver=' "$pk" && grep -q '^pkgrel=' "$pk" && grep -Eq "^sha256sums=\('[0-9a-f]{64}'" "$pk" ||
die "$pk lacks the pkgver=, pkgrel= or sha256sums=('<64 hex>' line that step aur rewrites" "restore them, commit"
- (cd packaging/arch && makepkg --printsrcinfo 2>/dev/null | cmp -s - .SRCINFO) ||
- die "packaging/arch/.SRCINFO doesn't match the PKGBUILD (or makepkg is missing)" "(cd packaging/arch && makepkg --printsrcinfo > .SRCINFO), commit"
+ # .SRCINFO names the same version, release and source checksum (the full comparison is CI's, arch.yml)
+ for f in pkgver pkgrel; do
+ grep -qx "$(printf '\t%s = %s' "$f" "$(sed -n "s/^$f=//p" "$pk")")" packaging/arch/.SRCINFO ||
+ die "packaging/arch/.SRCINFO's $f differs from the PKGBUILD's" "(cd packaging/arch && makepkg --printsrcinfo > .SRCINFO), commit"
+ done
+ grep -qF "$(printf '\tsha256sums = %s' "$(sed -n "s/^sha256sums=('\([0-9a-f]*\)'.*/\1/p" "$pk")")" packaging/arch/.SRCINFO ||
+ die "packaging/arch/.SRCINFO's source checksum differs from the PKGBUILD's" "(cd packaging/arch && makepkg --printsrcinfo > .SRCINFO), commit"
if [ -f "$AUR_FLAG" ]; then
GIT_SSH_COMMAND="ssh -o BatchMode=yes -o ConnectTimeout=15" git ls-remote "$AUR_REPO" >/dev/null 2>&1 ||
die "the AUR doesn't accept this machine's SSH key ($AUR_REPO), and $AUR_FLAG turns the AUR push on" "ssh -T [email protected] to see why (key in My Account on aur.archlinux.org), or remove $AUR_FLAG to skip the AUR"