2022-02-13 14:10:59 -06:00
|
|
|
#!/usr/bin/env bash
|
|
|
|
|
|
|
|
|
|
set -e
|
|
|
|
|
|
2023-11-18 08:12:34 -06:00
|
|
|
VERSION=$(bin/buildinfo.py long)
|
|
|
|
|
SHORT_VERSION=$(bin/buildinfo.py short)
|
2022-02-13 14:10:59 -06:00
|
|
|
|
|
|
|
|
OUTDIR=release/
|
|
|
|
|
|
|
|
|
|
rm -f $OUTDIR/firmware*
|
|
|
|
|
|
|
|
|
|
mkdir -p $OUTDIR/
|
|
|
|
|
rm -r $OUTDIR/* || true
|
|
|
|
|
|
|
|
|
|
# Important to pull latest version of libs into all device flavors, otherwise some devices might be stale
|
2023-11-18 08:12:34 -06:00
|
|
|
platformio pkg update
|
2022-02-13 14:10:59 -06:00
|
|
|
|
2023-11-18 08:12:34 -06:00
|
|
|
if command -v raspi-config &>/dev/null; then
|
|
|
|
|
pio run --environment raspbian
|
|
|
|
|
cp .pio/build/raspbian/program $OUTDIR/meshtasticd_linux_arm64
|
|
|
|
|
else
|
|
|
|
|
pio run --environment native
|
|
|
|
|
cp .pio/build/native/program $OUTDIR/meshtasticd_linux_amd64
|
|
|
|
|
fi
|
2022-02-13 14:10:59 -06:00
|
|
|
|
|
|
|
|
cp bin/device-install.* $OUTDIR
|
|
|
|
|
cp bin/device-update.* $OUTDIR
|