#!/usr/bin/make -f # export DH_VERBOSE = 1 # Use the "dh" sequencer %: dh $@ # https://docs.platformio.org/en/latest/envvars.html PIO_ENV:=\ PLATFORMIO_CORE_DIR=pio/core \ PLATFORMIO_LIBDEPS_DIR=pio/libdeps \ PLATFORMIO_PACKAGES_DIR=pio/packages override_dh_auto_build: # Build with platformio tar -xf pio.tar $(PIO_ENV) platformio run -e native # Move the binary and default config to the correct name mv .pio/build/native/program .pio/build/native/meshtasticd cp bin/config-dist.yaml bin/config.yaml