mirror of
https://github.com/meshtastic/firmware.git
synced 2025-06-18 02:52:05 +00:00

From the manpage: > arch - print machine hardware name (same as uname -m) Arch Linux does not have the `arch` alias, only `uname`, so use `uname` to fix this issue: > ``` > ./bin/build-native.sh: line 18: arch: command not found > ``` Co-authored-by: Jonathan Bennett <jbennett@incomsystems.biz>
21 lines
477 B
Bash
Executable File
21 lines
477 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
|
|
pio run --environment native
|
|
cp .pio/build/native/program "$OUTDIR/meshtasticd_linux_$(uname -m)"
|
|
cp bin/device-install.* $OUTDIR
|
|
cp bin/device-update.* $OUTDIR
|