Skip to content

Commit

Permalink
try fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Maks1mS committed Oct 11, 2023
1 parent e6b8f06 commit 83b1e77
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 9 deletions.
24 changes: 16 additions & 8 deletions src/wine/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ COREFONTS_FILES=(
"wd97vwr32.exe"
"webdin32.exe"
)
COREFONTS_CACHE_DIR="$HOME/.cache/winetricks/corefonts/"
COREFONTS_CACHE_DIR="\$HOME/.cache/winetricks/corefonts/"

update_rc_file() {
# see if folder containing file exists
Expand Down Expand Up @@ -73,13 +73,21 @@ export WINEDEBUG=-all"
update_rc_file "$_REMOTE_USER_HOME/.profile" "${snippet}"
update_rc_file "$_REMOTE_USER_HOME/.bashrc" "${snippet}"

su - "$_REMOTE_USER" <<EOF
mkdir -p "$WINEPREFIX"
wine wineboot --init
echo "check-certificate = off" >> ~/.wgetrc
echo "check_certificate = off" >> ~/.wgetrc
mkdir -p "\$COREFONTS_CACHE_DIR"
for filename in "${COREFONTS_FILES[@]}"; do
# su -l "$_REMOTE_USER" <<EOF
# mkdir -p "$WINEPREFIX"
# wine wineboot --init
# echo "check-certificate = off" >> ~/.wgetrc
# echo "check_certificate = off" >> ~/.wgetrc
# mkdir -p "\$COREFONTS_CACHE_DIR"
# for filename in (${COREFONTS_FILES[@]}); do
# wget -P "$COREFONTS_CACHE_DIR" "$COREFONTS_BASE_URL\$filename"
# done
# winetricks corefonts
# EOF
su -l $_REMOTE_USER <<EOF
mkdir -p "\$WINEPREFIX"
mkdir -p "$COREFONTS_CACHE_DIR"
for filename in ${COREFONTS_FILES[@]}; do
wget -P "$COREFONTS_CACHE_DIR" "$COREFONTS_BASE_URL\$filename"
done
winetricks corefonts
Expand Down
3 changes: 2 additions & 1 deletion test/wine/wine_specified_version.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ set -e

source dev-container-features-test-lib

check "wine exists" bash -c "wine --version"
check "wine version is same" bash -c "[[ "$(wine --version | tr -d -c 0-9.)" == *"8.5"* ]]"

reportResults
reportResults

0 comments on commit 83b1e77

Please sign in to comment.