fix(ci): use sha256sum on Windows and improve A2UI path resolution

This commit is contained in:
Gareth Jones committed 2026-01-26 22:30:32 -08:00
1 parent c10d759c44
commit 0ac8f6e425
2 files changed
+37 -2

No files matched your search

+12 -2
View File
@@ -23,10 +23,20 @@ collect_files() {
}
compute_hash() {
# Use sha256sum on Linux/Windows (Git Bash), shasum on macOS
local sha_cmd
if command -v sha256sum &>/dev/null; then
sha_cmd="sha256sum"
elif command -v shasum &>/dev/null; then
sha_cmd="shasum -a 256"
else
echo "No sha256 tool found (sha256sum or shasum)" >&2
exit 1
fi
collect_files \
| LC_ALL=C sort -z \
| xargs -0 shasum -a 256 \
| shasum -a 256 \
| xargs -0 $sha_cmd \
| $sha_cmd \
| awk '{print $1}'
}