Skip to content

Commit

Permalink
meshtasticd-debian: Include web components (meshtastic#5778)
Browse files Browse the repository at this point in the history
  • Loading branch information
vidplace7 authored Jan 7, 2025
1 parent 57766d4 commit 8617017
Show file tree
Hide file tree
Showing 10 changed files with 31 additions and 17 deletions.
6 changes: 4 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
.pio
.pio_core
pio
pio.tar
web
web.tar

# ignore vscode IDE settings files
.vscode/*
Expand Down Expand Up @@ -32,4 +34,4 @@ release/
.vscode/extensions.json
/compile_commands.json
src/mesh/raspihttp/certificate.pem
src/mesh/raspihttp/private_key.pem
src/mesh/raspihttp/private_key.pem
2 changes: 1 addition & 1 deletion debian/changelog
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
meshtasticd (2.5.19) unstable; urgency=medium
meshtasticd (2.5.19) UNRELEASED; urgency=medium

* Initial packaging

Expand Down
7 changes: 4 additions & 3 deletions debian/ci_changelog.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
#!/usr/bin/bash
export DEBEMAIL="github-actions[bot]@users.noreply.github.com"
PKG_VERSION=$(python3 bin/buildinfo.py short)

dch --newversion "$(python3 bin/buildinfo.py short)-1" \
--distribution unstable \
"GitHub Actions Automatic version bump"
dch --newversion "$PKG_VERSION-1" \
--distribution UNRELEASED \
"GitHub Actions Automatic version bump"
7 changes: 5 additions & 2 deletions debian/ci_pack_sdeb.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,14 @@ export PLATFORMIO_LIBDEPS_DIR=pio/libdeps
export PLATFORMIO_PACKAGES_DIR=pio/packages
export PLATFORMIO_CORE_DIR=pio/core

# Download libraries to `libdeps`
# Download libraries to `pio`
platformio pkg install -e native
platformio pkg install -t platformio/[email protected]
platformio pkg install -e native -t platformio/[email protected]
# Compress `pio` directory to prevent dh_clean from sanitizing it
tar -cf pio.tar pio/
rm -rf pio
# Download the latest meshtastic/web release build.tar to `web.tar`
curl https://github.com/meshtastic/web/releases/download/latest/build.tar -o web.tar

package=$(dpkg-parsechangelog --show-field Source)

Expand Down
8 changes: 6 additions & 2 deletions debian/control
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,11 @@ Build-Depends: debhelper-compat (= 13),
libgpiod-dev,
libbluetooth-dev,
libusb-1.0-0-dev,
libi2c-dev
libi2c-dev,
openssl,
libssl-dev,
libulfius-dev,
liborcania-dev
Standards-Version: 4.6.2
Homepage: https://github.com/meshtastic/firmware
Rules-Requires-Root: no
Expand All @@ -23,4 +27,4 @@ Architecture: any
Depends: ${misc:Depends}, ${shlibs:Depends}
Description: Meshtastic daemon for communicating with Meshtastic devices
Meshtastic is an off-grid text communication platform that uses inexpensive
LoRa radios.
LoRa radios.
1 change: 1 addition & 0 deletions debian/meshtasticd.dirs
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
etc/meshtasticd
etc/meshtasticd/config.d
etc/meshtasticd/available.d
usr/share/meshtasticd/web
2 changes: 2 additions & 0 deletions debian/meshtasticd.install
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,5 @@ bin/config.yaml etc/meshtasticd
bin/config.d/* etc/meshtasticd/available.d

bin/meshtasticd.service lib/systemd/system

web/* usr/share/meshtasticd/web
7 changes: 5 additions & 2 deletions debian/rules
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,12 @@ PIO_ENV:=\
PLATFORMIO_PACKAGES_DIR=pio/packages

override_dh_auto_build:
# Build with platformio
# Extract tarballs within source deb
tar -xf pio.tar
tar -xf web.tar web
gunzip web/ -r
# 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
cp bin/config-dist.yaml bin/config.yaml
5 changes: 2 additions & 3 deletions debian/source/include-binaries
Original file line number Diff line number Diff line change
@@ -1,3 +1,2 @@
pio/libdeps
pio/packages
pio/core
pio.tar
web.tar
3 changes: 1 addition & 2 deletions debian/source/options
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
extend-diff-ignore = "\.pio\w*?$"
tar-ignore = ""
extend-diff-ignore = "\.pio"

0 comments on commit 8617017

Please sign in to comment.