panda/release/make_release.sh

23 lines
555 B
Bash
Raw Permalink Normal View History

#!/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
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)
zip -j ../../release/panda-$RELEASE_NAME.zip version panda.bin.signed bootstub.panda.bin panda_h7.bin.signed bootstub.panda_h7.bin