2017-08-21 14:43:39 -07:00
|
|
|
#!/bin/bash
|
2022-03-07 10:47:38 -08:00
|
|
|
set -e
|
2017-08-21 14:43:39 -07:00
|
|
|
|
2022-03-07 10:47:38 -08:00
|
|
|
DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" >/dev/null && pwd)"
|
|
|
|
|
export CERT=$DIR/../../xx/pandaextra/certs/release
|
|
|
|
|
|
|
|
|
|
if [ ! -f "$CERT" ]; then
|
2017-08-21 14:46:11 -07:00
|
|
|
echo "No release cert found, cannot build release."
|
|
|
|
|
echo "You probably aren't looking to do this anyway."
|
|
|
|
|
exit
|
|
|
|
|
fi
|
|
|
|
|
|
2017-08-22 09:14:16 -07:00
|
|
|
export RELEASE=1
|
2019-10-07 14:42:38 -07:00
|
|
|
export BUILDER=DEV
|
2017-08-22 09:14:16 -07:00
|
|
|
|
2022-03-07 10:47:38 -08:00
|
|
|
cd $DIR/../board
|
2021-12-06 16:10:55 -08:00
|
|
|
scons -u -c
|
|
|
|
|
rm obj/*
|
|
|
|
|
scons -u
|
|
|
|
|
cd obj
|
|
|
|
|
RELEASE_NAME=$(awk '{print $1}' version)
|
|
|
|
|
rm panda.bin panda_h7.bin
|
|
|
|
|
mv panda.bin.signed panda.bin
|
|
|
|
|
mv panda_h7.bin.signed panda_h7.bin
|
|
|
|
|
zip -j ../../release/panda-$RELEASE_NAME.zip version panda.bin bootstub.panda.bin panda_h7.bin bootstub.panda_h7.bin
|