2022-02-13 20:10:59 +00:00
|
|
|
#!/usr/bin/env bash
|
|
|
|
|
|
|
|
set -e
|
|
|
|
|
2023-11-18 14:12:34 +00:00
|
|
|
VERSION=$(bin/buildinfo.py long)
|
|
|
|
SHORT_VERSION=$(bin/buildinfo.py short)
|
2022-02-13 20:10:59 +00: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 14:12:34 +00:00
|
|
|
platformio pkg update
|
2024-01-13 22:12:26 +00:00
|
|
|
pio run --environment native
|
2024-01-14 01:11:59 +00:00
|
|
|
cp .pio/build/native/program "$OUTDIR/meshtasticd_linux_$(arch)"
|
2022-02-13 20:10:59 +00:00
|
|
|
cp bin/device-install.* $OUTDIR
|
|
|
|
cp bin/device-update.* $OUTDIR
|