2025-02-01 01:14:42 -07:00
|
|
|
#!/bin/bash
|
|
|
|
|
# Author : Gaston Gonzalez
|
|
|
|
|
# Date : 20 January 2025
|
2025-03-18 12:15:48 -07:00
|
|
|
# Updated : 18 March 2025
|
2025-02-01 01:14:42 -07:00
|
|
|
# Purpose : Install WINE to support VARA
|
|
|
|
|
|
|
|
|
|
WIN32_DIR="${HOME}/.win32"
|
|
|
|
|
|
|
|
|
|
et-log "Installing WINE..."
|
|
|
|
|
|
|
|
|
|
# Check for an existing i386 architecture
|
|
|
|
|
ARCH_OUT=$(dpkg --print-foreign-architectures | grep i386)
|
|
|
|
|
[ $? -ne 0 ] && dpkg --add-architecture i386
|
|
|
|
|
|
|
|
|
|
#if [ ! -e "/etc/apt/keyrings/winehq-archive.key" ]; then
|
|
|
|
|
# et-log "Adding apt keys for official wine repo"
|
|
|
|
|
# mkdir -pm755 /etc/apt/keyrings
|
|
|
|
|
# wget -O /etc/apt/keyrings/winehq-archive.key https://dl.winehq.org/wine-builds/winehq.key
|
|
|
|
|
# wget -NP /etc/apt/sources.list.d/ https://dl.winehq.org/wine-builds/ubuntu/dists/$(lsb_release -sc)/winehq-$(lsb_release -sc).sources
|
|
|
|
|
# apt update
|
|
|
|
|
# apt install --install-recommends winehq-stable
|
|
|
|
|
#fi
|
|
|
|
|
|
|
|
|
|
apt install \
|
|
|
|
|
wine \
|
|
|
|
|
winetricks \
|
|
|
|
|
exe-thumbnailer \
|
|
|
|
|
-y
|
|
|
|
|
|
2025-03-18 12:15:48 -07:00
|
|
|
# Only show the directions for including WINE in the image to advanced users
|
|
|
|
|
if [[ ! -z "${ET_EXPERT}" ]]; then
|
|
|
|
|
dialog --textbox wine.txt 15 74
|
|
|
|
|
tput sgr 0 && clear
|
|
|
|
|
fi
|