-
Notifications
You must be signed in to change notification settings - Fork 989
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
meshtasticd debian: split libs for PPA
- Loading branch information
Showing
7 changed files
with
24 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -25,6 +25,7 @@ __pycache__ | |
*.swo | ||
*~ | ||
|
||
libdeps/ | ||
venv/ | ||
release/ | ||
.vscode/extensions.json | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
#!/usr/bin/bash | ||
export PLATFORMIO_LIBDEPS_DIR=libdeps | ||
|
||
# Download libraries to `libdeps` | ||
platformio pkg install -e native | ||
|
||
# Build the source deb | ||
debuild -S | ||
|
||
# dput ppa:meshtastic/meshtastic-daily ../meshtastic_${VERSION}_source.changes |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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, | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,17 @@ | ||
#!/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=libdeps | ||
|
||
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
libdeps |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
extend-diff-ignore = "\.pio" |