2025-01-05 16:22:11 +00:00
|
|
|
#!/usr/bin/bash
|
2025-01-05 20:26:56 +00:00
|
|
|
export DEBEMAIL="jbennett@incomsystems.biz"
|
2025-01-05 16:22:11 +00:00
|
|
|
export PLATFORMIO_LIBDEPS_DIR=pio/libdeps
|
|
|
|
export PLATFORMIO_PACKAGES_DIR=pio/packages
|
2025-01-05 21:26:31 +00:00
|
|
|
export PLATFORMIO_CORE_DIR=pio/core
|
2025-01-05 16:22:11 +00:00
|
|
|
|
2025-01-07 01:25:05 +00:00
|
|
|
# Download libraries to `pio`
|
2025-01-05 16:22:11 +00:00
|
|
|
platformio pkg install -e native
|
2025-01-07 01:25:05 +00:00
|
|
|
platformio pkg install -e native -t platformio/tool-scons@4.40502.0
|
|
|
|
# Compress `pio` directory to prevent dh_clean from sanitizing it
|
2025-01-06 01:38:08 +00:00
|
|
|
tar -cf pio.tar pio/
|
2025-01-06 04:23:01 +00:00
|
|
|
rm -rf pio
|
2025-01-07 01:25:05 +00:00
|
|
|
# Download the latest meshtastic/web release build.tar to `web.tar`
|
2025-01-07 02:51:50 +00:00
|
|
|
curl -L https://github.com/meshtastic/web/releases/download/latest/build.tar -o web.tar
|
2025-01-05 16:22:11 +00:00
|
|
|
|
2025-01-05 19:24:05 +00:00
|
|
|
package=$(dpkg-parsechangelog --show-field Source)
|
|
|
|
|
2025-01-05 19:37:15 +00:00
|
|
|
rm -rf debian/changelog
|
2025-01-06 22:20:05 +00:00
|
|
|
dch --create --distribution "$SERIES" --package "$package" --newversion "$PKG_VERSION~$SERIES" \
|
2025-01-05 20:14:47 +00:00
|
|
|
"GitHub Actions Automatic packaging for $PKG_VERSION~$SERIES"
|
2025-01-05 19:24:05 +00:00
|
|
|
|
2025-01-05 16:22:11 +00:00
|
|
|
# Build the source deb
|
2025-01-06 22:20:05 +00:00
|
|
|
debuild -S -nc -k"$GPG_KEY_ID"
|