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-04-16 09:21:31 +00:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								platformio pkg install -e native-tft
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								platformio pkg install -e native-tft -t platformio/tool-scons@4.40502.0
							 | 
						
					
						
							
								
									
										
										
										
											2025-01-07 01:25:05 +00:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								# 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-04-08 14:09:23 +00: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 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"
							 |