Files
sunnypilot/tools/release/check_file_sizes.sh
Harald Schäfer 1328ace068 Remove model chunking and use LFS for Chestnut releases (#38941)
* Remove model chunking and use LFS for Chestnut releases

* Check Git blob sizes once during release packaging

* Download the big model for Chestnut nightly builds

* Reuse published LFS models when pushing releases

* Preserve LFS configuration when copying Chestnut releases

* Detect release builds independently of LFS attributes
2026-09-17 16:34:52 -07:00

9 lines
220 B
Bash

#!/usr/bin/env bash
BIG_FILES="$(git ls-tree -rl HEAD | awk '$4 > 95 * 1024 * 1024 {print $5}')"
if [ -n "$BIG_FILES" ]; then
echo "Found Git blobs exceeding the 95 MiB release limit:"
echo "$BIG_FILES"
exit 1
fi