mirror of
https://github.com/thetechprepper/emcomm-tools-os-community.git
synced 2026-09-17 15:41:44 -04:00
Merge pull request #67 from thetechprepper/misc/pre-r5-final-updates
Merge misc/pre-r5-final-updates to release/r5
This commit is contained in:
@@ -1,31 +1,43 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
# Author : Gaston Gonzalez
|
# Author : Gaston Gonzalez
|
||||||
# Date : 6 July 2025
|
# Date : 6 July 2025
|
||||||
|
# Updated : 20 November 2025
|
||||||
# Purpose : Downloads pre-rendered raster map tiles in mbtile format
|
# Purpose : Downloads pre-rendered raster map tiles in mbtile format
|
||||||
|
|
||||||
BASE_URL="https://github.com/thetechprepper/emcomm-tools-os-community/releases/download"
|
BASE_URL="https://github.com/thetechprepper/emcomm-tools-os-community/releases/download"
|
||||||
RELEASE="emcomm-tools-os-community-20250401-r4-final-4.0.0"
|
RELEASE="emcomm-tools-os-community-20250401-r4-final-4.0.0"
|
||||||
TILESET_DIR="/etc/skel/.local/share/emcomm-tools/mbtileserver/tilesets"
|
TILESET_DIR="/etc/skel/.local/share/emcomm-tools/mbtileserver/tilesets"
|
||||||
|
|
||||||
|
# Display names for the menu
|
||||||
OPTIONS=(
|
OPTIONS=(
|
||||||
"us" "United States"
|
"us" "United States"
|
||||||
"ca" "Canada"
|
"ca" "Canada"
|
||||||
|
"world" "Global Map"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
# Map each option to its corresponding file name
|
||||||
|
declare -A FILES
|
||||||
|
FILES=(
|
||||||
|
["us"]="osm-us-zoom0to11-20251120.mbtiles"
|
||||||
|
["ca"]="osm-ca-zoom0to10-20251120.mbtiles"
|
||||||
|
["world"]="osm-world-zoom0to6-20251120.mbtiles"
|
||||||
|
)
|
||||||
|
|
||||||
|
# Show dialog
|
||||||
SELECTED_COUNTRY=$(dialog --clear --menu "Select a country" 15 40 5 "${OPTIONS[@]}" 2>&1 >/dev/tty)
|
SELECTED_COUNTRY=$(dialog --clear --menu "Select a country" 15 40 5 "${OPTIONS[@]}" 2>&1 >/dev/tty)
|
||||||
EXIT_STATUS=$?
|
EXIT_STATUS=$?
|
||||||
|
|
||||||
tput sgr 0 && clear
|
tput sgr0 && clear
|
||||||
|
|
||||||
if [[ $EXIT_STATUS -eq 0 ]]; then
|
if [[ $EXIT_STATUS -eq 0 ]]; then
|
||||||
DOWNLOAD_FILE="osm-${SELECTED_COUNTRY}-zoom0to10-20250703.mbtiles"
|
DOWNLOAD_FILE="${FILES[$SELECTED_COUNTRY]}"
|
||||||
DOWNLOAD_URL="${BASE_URL}/${RELEASE}/${DOWNLOAD_FILE}"
|
DOWNLOAD_URL="${BASE_URL}/${RELEASE}/${DOWNLOAD_FILE}"
|
||||||
|
|
||||||
if [[ ! -e ${DOWNLOAD_FILE} ]]; then
|
if [[ ! -e ${DOWNLOAD_FILE} ]]; then
|
||||||
et-log "Downloading ${DOWNLOAD_URL}"
|
et-log "Downloading ${DOWNLOAD_URL}"
|
||||||
curl -L -f -o ${DOWNLOAD_FILE} ${DOWNLOAD_URL}
|
curl -L -f -o "${DOWNLOAD_FILE}" "${DOWNLOAD_URL}"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
et-log "Moving ${DOWNLOAD_FILE} ${TILESET_DIR}"
|
et-log "Moving ${DOWNLOAD_FILE} to ${TILESET_DIR}"
|
||||||
mv -v ${DOWNLOAD_FILE} ${TILESET_DIR}
|
mv -v "${DOWNLOAD_FILE}" "${TILESET_DIR}"
|
||||||
fi
|
fi
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
# Author : Gaston Gonzalez
|
# Author : Gaston Gonzalez
|
||||||
# Date : 9 July 2025
|
# Date : 9 July 2025
|
||||||
# Updated : 12 November 2025
|
# Updated : 20 November 2025
|
||||||
# Purpose : Install et-aircraft-app
|
# Purpose : Install et-aircraft-app
|
||||||
set -e
|
set -e
|
||||||
trap 'last_command=$current_command; current_command=$BASH_COMMAND' DEBUG
|
trap 'last_command=$current_command; current_command=$BASH_COMMAND' DEBUG
|
||||||
@@ -11,7 +11,7 @@ trap 'et-log "\"${last_command}\" command failed with exit code $?."' ERR
|
|||||||
. ../overlay/opt/emcomm-tools/bin/et-common
|
. ../overlay/opt/emcomm-tools/bin/et-common
|
||||||
|
|
||||||
APP=et-aircraft-app
|
APP=et-aircraft-app
|
||||||
VERSION=1.0.1
|
VERSION=1.1.0
|
||||||
DOWNLOAD_FILE="${APP}_${VERSION}_amd64.deb"
|
DOWNLOAD_FILE="${APP}_${VERSION}_amd64.deb"
|
||||||
|
|
||||||
et-log "Installing ${APP} ${VERSION}..."
|
et-log "Installing ${APP} ${VERSION}..."
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
# Author : Gaston Gonzalez
|
# Author : Gaston Gonzalez
|
||||||
# Date : 12 November 2025
|
# Date : 20 November 2025
|
||||||
# Purpose : Install et-predict-app
|
# Purpose : Install et-predict-app
|
||||||
set -e
|
set -e
|
||||||
trap 'last_command=$current_command; current_command=$BASH_COMMAND' DEBUG
|
trap 'last_command=$current_command; current_command=$BASH_COMMAND' DEBUG
|
||||||
@@ -10,7 +10,7 @@ trap 'et-log "\"${last_command}\" command failed with exit code $?."' ERR
|
|||||||
. ../overlay/opt/emcomm-tools/bin/et-common
|
. ../overlay/opt/emcomm-tools/bin/et-common
|
||||||
|
|
||||||
APP=et-predict-app
|
APP=et-predict-app
|
||||||
VERSION=1.1.0
|
VERSION=1.2.0
|
||||||
DOWNLOAD_FILE="${APP}_${VERSION}_amd64.deb"
|
DOWNLOAD_FILE="${APP}_${VERSION}_amd64.deb"
|
||||||
|
|
||||||
et-log "Installing ${APP} ${VERSION}..."
|
et-log "Installing ${APP} ${VERSION}..."
|
||||||
|
|||||||
Reference in New Issue
Block a user