From 2324d89dd69f1b5d97ca854745ba60159d8e43c9 Mon Sep 17 00:00:00 2001 From: tb14 Date: Sat, 20 Jun 2026 22:11:30 -0500 Subject: [PATCH] wine check --- AmRRON-Vara-setup.sh | 21 ++++++++++++++++++++- 1 file changed, 20 insertions(+), 1 deletion(-) diff --git a/AmRRON-Vara-setup.sh b/AmRRON-Vara-setup.sh index c2031c5..cece9df 100755 --- a/AmRRON-Vara-setup.sh +++ b/AmRRON-Vara-setup.sh @@ -349,9 +349,12 @@ function install_wine_resolute() { cd ~/ && wget -N https://github.com/Kron4ek/Wine-Builds/releases/download/9.16/wine-9.16-amd64.tar.xz || { ERRCODE="Failed to download wine 9.16"; errors; return; } -wget -N wget https://raw.githubusercontent.com/Winetricks/winetricks/master/src/winetricks && chmod +x winetricks || +wget -N wget https://raw.githubusercontent.com/Winetricks/winetricks/master/src/winetricks || { ERRCODE="Failed to download winetricks"; errors; return; } +chmod +x winetricks || +{ ERRCODE="Failed to make winetricks executable"; errors; return; } + tar -xf ~/wine-9.16-amd64.tar.xz && rm wine-9.16-amd64.tar.xz || { ERRCODE="Failed to extract archive"; errors; return; } @@ -434,6 +437,10 @@ fi function install_varahf() { #download/install VARA HF +if ! hash wine 2>/dev/null; then + return +fi + if [[ $OSCN = una ]]; then sudo apt install -y curl libcurl4-openssl-dev libssl-dev || { ERRCODE="Failed to install dependencies for pulling vara installation files"; errors; return; } @@ -494,6 +501,10 @@ unzip VARA\ HF\ $VARAHFVER*.zip || function install_varafm() { +if ! hash wine 2>/dev/null; then + return +fi + if [[ $OSCN = una ]]; then sudo apt install -y curl libcurl4-openssl-dev libssl-dev || { ERRCODE="Failed to install dependencies for pulling vara installation files"; errors; return; } @@ -555,6 +566,9 @@ unzip VARA\ FM\ $VARAFMVER*.zip || function install_varac() { +if ! hash wine 2>/dev/null; then + return +fi if [[ $OSCN =~ wilma|xia|zara|zena|noble|plucky|resolute ]]; then @@ -592,6 +606,11 @@ fi } function install_rmsexpress() { + +if ! hash wine 2>/dev/null; then + return +fi + cd $HOME/Downloads wget -q -r -l1 -np -nd -A "Winlink_Express_install_*.zip" https://downloads.winlink.org/User%20Programs || { ERRCODE="Failed to download Winlink Express"; errors; return; }