stop distributing the (enormous) elf files in the zip file

1.2-legacy
geeksville 2020-03-30 18:51:15 -07:00
rodzic 1da62e5ba1
commit 1b050a6c3d
1 zmienionych plików z 5 dodań i 3 usunięć

Wyświetl plik

@ -14,6 +14,8 @@ ARCHIVEDIR=release/archive
rm -f $OUTDIR/firmware* rm -f $OUTDIR/firmware*
mkdir -p $OUTDIR/bins $OUTDIR/elfs
# build the named environment and copy the bins to the release directory # build the named environment and copy the bins to the release directory
function do_build { function do_build {
ENV_NAME=$1 ENV_NAME=$1
@ -22,8 +24,8 @@ function do_build {
SRCELF=.pio/build/$ENV_NAME/firmware.elf SRCELF=.pio/build/$ENV_NAME/firmware.elf
rm -f $SRCBIN rm -f $SRCBIN
pio run --environment $ENV_NAME # -v pio run --environment $ENV_NAME # -v
cp $SRCBIN $OUTDIR/firmware-$ENV_NAME-$COUNTRY-$VERSION.bin cp $SRCBIN $OUTDIR/bins/firmware-$ENV_NAME-$COUNTRY-$VERSION.bin
cp $SRCELF $OUTDIR/firmware-$ENV_NAME-$COUNTRY-$VERSION.elf cp $SRCELF $OUTDIR/elfs/firmware-$ENV_NAME-$COUNTRY-$VERSION.elf
} }
for COUNTRY in $COUNTRIES; do for COUNTRY in $COUNTRIES; do
@ -56,6 +58,6 @@ Generated by bin/buildall.sh -->
XML XML
rm -f $ARCHIVEDIR/firmware-$VERSION.zip rm -f $ARCHIVEDIR/firmware-$VERSION.zip
zip --junk-paths $ARCHIVEDIR/firmware-$VERSION.zip $OUTDIR/firmware-*-$VERSION.* images/system-info.bin bin/device-install.sh zip --junk-paths $ARCHIVEDIR/firmware-$VERSION.zip $OUTDIR/bins/firmware-*-$VERSION.* images/system-info.bin bin/device-install.sh
echo BUILT ALL echo BUILT ALL