hive package: no AppleDouble entries in the tar (COPYFILE_DISABLE, no mac metadata)

GNU tar on HiveOS materialised the Mac's extended headers as ._ files next to every binary.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
This commit is contained in:
igneum-labs 2026-10-07 02:43:07 +00:00
parent 57718aab70
commit f796d19712

View file

@ -39,7 +39,7 @@ sed "s/^CUSTOM_VERSION=.*/CUSTOM_VERSION=$VERSION/" "$HERE/h-manifest.conf" > "$
chmod +x "$stage"/h-*.sh "$stage"/bin/*
for f in "$stage"/h-*.sh; do bash -n "$f"; done
tgz="$OUT/igneum-hive-$VERSION.tar.gz"
tar -C "$OUT" -czf "$tgz" igneum
COPYFILE_DISABLE=1 tar -C "$OUT" --no-xattrs --no-mac-metadata -czf "$tgz" igneum 2>/dev/null || COPYFILE_DISABLE=1 tar -C "$OUT" -czf "$tgz" igneum
rm -rf "$stage"
sum="$(shasum -a 256 "$tgz" 2>/dev/null | awk '{print $1}' || sha256sum "$tgz" | awk '{print $1}')"
log "wrote $tgz ($(du -h "$tgz" | cut -f1), sha256 $sum)"