Files
driver-manager/build.sh
sssnake 6e027b2c1b Add RTL-SDR mode switcher, DVB-T to Kodi pipeline, FM radio
Mode switcher (rtl_mode_switch.sh) handles exclusive dongle access
between DVB-T, FM, SDR scanner, ADS-B, spectrum, and HackRF modes.
DVB-T pipeline: RTL-SDR -> GNU Radio demod -> MPEG-TS -> HTTP -> Kodi.
Kodi setup script generates M3U playlist for PVR IPTV Simple Client.
Includes dvbt_rx.py and sdr_tv.py from dvbt-rx project.
WebUI updated with mode switcher, channel selector, and Kodi controls.
2026-03-31 07:38:02 -07:00

37 lines
707 B
Bash
Executable File

#!/bin/bash
set -e
cd "$(dirname "$0")"
ZIP="driver-manager-v1.0.0.zip"
rm -f "$ZIP"
# Include built APK if available
mkdir -p apk
RTL_APK="tools/rtl_tcp_andro/app/build/outputs/apk/release/app-release-unsigned.apk"
if [ -f "$RTL_APK" ]; then
cp "$RTL_APK" apk/rtl_tcp_andro.apk
echo "Including rtl_tcp_andro APK"
fi
FILES=(
module.prop
customize.sh
post-fs-data.sh
service.sh
system.prop
system/
webroot/
scripts/
BUILDING_MODULES.md
)
# Include APK dir if it has files
if [ -f "apk/rtl_tcp_andro.apk" ]; then
FILES+=(apk/)
fi
zip -r9 "$ZIP" "${FILES[@]}" \
-x "*.git*" "build.sh" "tools/*" "README*"
echo "Built: $ZIP ($(du -h "$ZIP" | cut -f1))"