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