carrot/release/build_carrot.sh
2025-02-04 18:56:48 +09:00

27 lines
642 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/supercombo.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