mirror of
https://github.com/meshtastic/firmware.git
synced 2025-02-01 10:19:59 +00:00
279464f96d
This is a couple times faster because platformio checks all environment sequentially. Co-authored-by: Ben Meadors <benmmeadors@gmail.com>
21 lines
498 B
Bash
Executable File
21 lines
498 B
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
set -e
|
|
|
|
VERSION=$(bin/buildinfo.py long)
|
|
SHORT_VERSION=$(bin/buildinfo.py short)
|
|
|
|
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
|
|
platformio pkg update --environment native
|
|
pio run --environment native
|
|
cp .pio/build/native/program "$OUTDIR/meshtasticd_linux_$(uname -m)"
|
|
cp bin/device-install.* $OUTDIR
|
|
cp bin/device-update.* $OUTDIR
|