Skip to content

Commit

Permalink
meshtasticd debian: split libs for PPA
Browse files Browse the repository at this point in the history
  • Loading branch information
vidplace7 committed Jan 5, 2025
1 parent 6aabbed commit cf218d1
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 9 deletions.
5 changes: 3 additions & 2 deletions debian/control
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,9 @@ Section: misc
Priority: optional
Maintainer: Austin Lane <[email protected]>
Build-Depends: debhelper-compat (= 13),
python3-pip,
python3-venv,
platformio,
python3-protobuf,
python3-grpcio,
git,
g++,
pkg-config,
Expand Down
14 changes: 7 additions & 7 deletions debian/rules
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,14 @@
%:
dh $@

PIO_ENV:=\
PLATFORMIO_CACHE_DIR=.pio/cache

override_dh_auto_build:
# Terrible hack to use modern platformio to build the native version
# python3 -m venv venv
# . venv/bin/activate
pip install platformio --break-system-packages
platformio run -e native
# deactivate
# rm -rf venv
# Download libraries to `.pio/libdeps`
$(PIO_ENV) platformio pkg install -e native
# Build with platformio
$(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

0 comments on commit cf218d1

Please sign in to comment.