mirror of
https://github.com/sunnypilot/sunnypilot.git
synced 2026-07-10 03:12:08 +08:00
df25dfbcdd
version: sunnypilot v2026.002.000 (staging)
date: 2026-06-27T13:50:10
master commit: da6313dbe9
23 lines
555 B
Bash
Executable File
23 lines
555 B
Bash
Executable File
#!/usr/bin/env bash
|
|
set -e
|
|
|
|
DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" >/dev/null && pwd)"
|
|
export CERT=/home/batman/xx/pandaextra/certs/release
|
|
|
|
if [ ! -f "$CERT" ]; then
|
|
echo "No release cert found, cannot build release."
|
|
echo "You probably aren't looking to do this anyway."
|
|
exit
|
|
fi
|
|
|
|
export RELEASE=1
|
|
export BUILDER=DEV
|
|
|
|
cd $DIR/../board
|
|
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
|