mirror of
https://github.com/meshtastic/firmware.git
synced 2026-01-10 11:57:25 +00:00
meshtasticd debian: split libs for PPA (#5745)
This commit is contained in:
1
debian/update_changelog.sh → debian/ci_changelog.sh
vendored
Normal file → Executable file
1
debian/update_changelog.sh → debian/ci_changelog.sh
vendored
Normal file → Executable file
@@ -1,5 +1,6 @@
|
||||
#!/usr/bin/bash
|
||||
export DEBEMAIL="github-actions[bot]@users.noreply.github.com"
|
||||
|
||||
dch --newversion "$(python3 bin/buildinfo.py short)-1" \
|
||||
--distribution unstable \
|
||||
"GitHub Actions Automatic version bump"
|
||||
9
debian/ci_pack_sdeb.sh
vendored
Executable file
9
debian/ci_pack_sdeb.sh
vendored
Executable file
@@ -0,0 +1,9 @@
|
||||
#!/usr/bin/bash
|
||||
export PLATFORMIO_LIBDEPS_DIR=pio/libdeps
|
||||
export PLATFORMIO_PACKAGES_DIR=pio/packages
|
||||
|
||||
# Download libraries to `libdeps`
|
||||
platformio pkg install -e native
|
||||
|
||||
# Build the source deb
|
||||
debuild -S
|
||||
5
debian/control
vendored
5
debian/control
vendored
@@ -3,8 +3,9 @@ Section: misc
|
||||
Priority: optional
|
||||
Maintainer: Austin Lane <vidplace7@gmail.com>
|
||||
Build-Depends: debhelper-compat (= 13),
|
||||
python3-pip,
|
||||
python3-venv,
|
||||
platformio,
|
||||
python3-protobuf,
|
||||
python3-grpcio,
|
||||
git,
|
||||
g++,
|
||||
pkg-config,
|
||||
|
||||
15
debian/rules
vendored
15
debian/rules
vendored
@@ -1,17 +1,18 @@
|
||||
#!/usr/bin/make -f
|
||||
# export DH_VERBOSE = 1
|
||||
|
||||
# Use the "dh" sequencer
|
||||
%:
|
||||
dh $@
|
||||
|
||||
# https://docs.platformio.org/en/latest/envvars.html
|
||||
PIO_ENV:=\
|
||||
PLATFORMIO_LIBDEPS_DIR=pio/libdeps \
|
||||
PLATFORMIO_PACKAGES_DIR=pio/packages
|
||||
|
||||
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
|
||||
# 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
|
||||
|
||||
2
debian/source/include-binaries
vendored
Normal file
2
debian/source/include-binaries
vendored
Normal file
@@ -0,0 +1,2 @@
|
||||
pio/libdeps
|
||||
pio/packages
|
||||
1
debian/source/options
vendored
Normal file
1
debian/source/options
vendored
Normal file
@@ -0,0 +1 @@
|
||||
extend-diff-ignore = "\.pio"
|
||||
Reference in New Issue
Block a user