mirror of
https://github.com/thetechprepper/emcomm-tools-os-community.git
synced 2026-09-17 15:41:44 -04:00
VARA Downloader - Updated VARA HF and FM install scripts to use a more robust application download method
This commit is contained in:
@@ -2,28 +2,19 @@
|
|||||||
#
|
#
|
||||||
# Author : Gaston Gonzalez
|
# Author : Gaston Gonzalez
|
||||||
# Date : 20 January 2025
|
# Date : 20 January 2025
|
||||||
# Updated : 1 February 2025
|
# Updated : 28 February 2025
|
||||||
# Purpose : Install VARA HF
|
# Purpose : Install VARA HF
|
||||||
set -e
|
|
||||||
|
|
||||||
source ./common-checks.sh
|
source ./common-checks.sh
|
||||||
|
|
||||||
VERSION="4.8.9"
|
|
||||||
DOWNLOAD_FILE="vara-hf-${VERSION}.zip"
|
|
||||||
URL="https://downloads.winlink.org/VARA%20Products/VARA%20HF%20v${VERSION}%20setup.zip"
|
|
||||||
VARA_HOME="${HOME}/.wine32/drive_c/VARA"
|
VARA_HOME="${HOME}/.wine32/drive_c/VARA"
|
||||||
|
VARA_PATTERN="VARA%20HF"
|
||||||
|
|
||||||
et-log "Installing VARA HF..."
|
./vara-downloader.sh "${VARA_PATTERN}"
|
||||||
|
[[ $? -ne 0 ]] && et-log "Error downloading VARA HF" && exit 1
|
||||||
|
|
||||||
if [ ! -e ${DOWNLOAD_FILE} ]; then
|
DOWNLOAD_FILE=$(ls *.zip | grep "${VARA_PATTERN}")
|
||||||
et-log "Downloading VARA HF ${version} from ${URL}"
|
[[ ! -e "${DOWNLOAD_FILE}" ]] && et-log "VARA download file not found" && exit 1
|
||||||
curl -s -f -L -o ${DOWNLOAD_FILE} "${URL}"
|
|
||||||
fi
|
|
||||||
|
|
||||||
if [ $? -ne 0 ]; then
|
|
||||||
et-log "Error downloading VARA HF ${VERSION}."
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
|
|
||||||
unzip -o ${DOWNLOAD_FILE}
|
unzip -o ${DOWNLOAD_FILE}
|
||||||
|
|
||||||
|
|||||||
@@ -2,28 +2,18 @@
|
|||||||
#
|
#
|
||||||
# Author : Gaston Gonzalez
|
# Author : Gaston Gonzalez
|
||||||
# Date : 20 January 2025
|
# Date : 20 January 2025
|
||||||
# Updated : 1 February 2025
|
# Updated : 28 February 2025
|
||||||
# Purpose : Install VARA FM
|
# Purpose : Install VARA FM
|
||||||
set -e
|
|
||||||
|
|
||||||
source ./common-checks.sh
|
source ./common-checks.sh
|
||||||
|
|
||||||
VERSION="4.3.8"
|
VARA_PATTERN="VARA%20FM"
|
||||||
DOWNLOAD_FILE="vara-fm-${VERSION}.zip"
|
|
||||||
URL="https://downloads.winlink.org/VARA%20Products/VARA%20FM%20v${VERSION}%20setup.zip"
|
|
||||||
VARA_HOME="${HOME}/.wine32/drive_c/VARA FM"
|
|
||||||
|
|
||||||
et-log "Installing VARA FM..."
|
./vara-downloader.sh "${VARA_PATTERN}"
|
||||||
|
[[ $? -ne 0 ]] && et-log "Error downloading VARA FM" && exit 1
|
||||||
|
|
||||||
if [ ! -e ${DOWNLOAD_FILE} ]; then
|
DOWNLOAD_FILE=$(ls *.zip | grep "${VARA_PATTERN}")
|
||||||
et-log "Downloading VARA FM ${version} from ${URL}"
|
[[ ! -e "${DOWNLOAD_FILE}" ]] && et-log "VARA download file not found" && exit 1
|
||||||
curl -s -f -L -o ${DOWNLOAD_FILE} "${URL}"
|
|
||||||
fi
|
|
||||||
|
|
||||||
if [ $? -ne 0 ]; then
|
|
||||||
et-log "Error downloading VARA FM ${VERSION}."
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
|
|
||||||
unzip -o ${DOWNLOAD_FILE}
|
unzip -o ${DOWNLOAD_FILE}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user