mirror of
https://github.com/meshtastic/firmware.git
synced 2025-02-02 02:39:57 +00:00
46bd6ca7ba
* Add configuration via /etc/meshtastic/config.yaml * Move example config, support more locations * Fix config check * Use access() to check for config file presence * Throw an error and exit on radio init fail * Adds error check for reading Bluetooth MAC * Settle on meshtasticd, add install script * Shell fixes * Fine. I'll put it back and then disable you * Get wrekt, shellchekt * Firat attempt at adding raspbian CI build * Tickle the workflow * Beatings will continue til morale improves * Permissions are overrated --------- Co-authored-by: Jonathan Bennett <jbennett@incomsystems.biz>
28 lines
622 B
Bash
Executable File
28 lines
622 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
|
|
|
|
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
|
|
|
|
cp bin/device-install.* $OUTDIR
|
|
cp bin/device-update.* $OUTDIR
|