2024-08-27 03:25:15 +03:00
|
|
|
#!/usr/bin/env 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)"
|
2023-05-21 20:30:13 -07:00
|
|
|
export CERT=/home/batman/xx/pandaextra/certs/release
|
2022-03-07 10:47:38 -08:00
|
|
|
|
|
|
|
|
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)
|
2023-05-21 21:19:19 -07:00
|
|
|
zip -j ../../release/panda-$RELEASE_NAME.zip version panda.bin.signed bootstub.panda.bin panda_h7.bin.signed bootstub.panda_h7.bin
|