Files
carrotpilot/release/build_carrot.sh
2025-08-04 12:33:57 +09:00

27 lines
633 B
Bash
Executable File

#!/usr/bin/bash -e
BUILD_DIR=/data/openpilot
cd $BUILD_DIR
git init
#git remote add origin https://github.com/ajouatom/openpilot
git remote set-url --push origin https://github.com/ajouatom/openpilot.git
# Cleanup
find . -name '*.a' -delete
find . -name '*.o' -delete
find . -name '*.os' -delete
find . -name '*.pyc' -delete
find . -name 'moc_*' -delete
find . -name '__pycache__' -delete
rm -rf .sconsign.dblite Jenkinsfile release/
rm selfdrive/modeld/models/*.onnx
touch prebuilt
# Add built files to git
git add -f .
VERSION="carrot_v$(date +%y%m%d)"
git commit -m $VERSION
git branch -m $VERSION
git push -f origin $VERSION