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