This commit is contained in:
Maxim Slipenko 2023-10-11 08:00:24 +00:00 committed by GitHub
parent e6b8f06415
commit 83b1e774b0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 18 additions and 9 deletions

View File

@ -22,7 +22,7 @@ COREFONTS_FILES=(
"wd97vwr32.exe" "wd97vwr32.exe"
"webdin32.exe" "webdin32.exe"
) )
COREFONTS_CACHE_DIR="$HOME/.cache/winetricks/corefonts/" COREFONTS_CACHE_DIR="\$HOME/.cache/winetricks/corefonts/"
update_rc_file() { update_rc_file() {
# see if folder containing file exists # see if folder containing file exists
@ -73,13 +73,21 @@ export WINEDEBUG=-all"
update_rc_file "$_REMOTE_USER_HOME/.profile" "${snippet}" update_rc_file "$_REMOTE_USER_HOME/.profile" "${snippet}"
update_rc_file "$_REMOTE_USER_HOME/.bashrc" "${snippet}" update_rc_file "$_REMOTE_USER_HOME/.bashrc" "${snippet}"
su - "$_REMOTE_USER" <<EOF # su -l "$_REMOTE_USER" <<EOF
mkdir -p "$WINEPREFIX" # mkdir -p "$WINEPREFIX"
wine wineboot --init # wine wineboot --init
echo "check-certificate = off" >> ~/.wgetrc # echo "check-certificate = off" >> ~/.wgetrc
echo "check_certificate = off" >> ~/.wgetrc # echo "check_certificate = off" >> ~/.wgetrc
mkdir -p "\$COREFONTS_CACHE_DIR" # mkdir -p "\$COREFONTS_CACHE_DIR"
for filename in "${COREFONTS_FILES[@]}"; do # 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" wget -P "$COREFONTS_CACHE_DIR" "$COREFONTS_BASE_URL\$filename"
done done
winetricks corefonts winetricks corefonts

View File

@ -3,6 +3,7 @@ set -e
source dev-container-features-test-lib 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"* ]]" check "wine version is same" bash -c "[[ "$(wine --version | tr -d -c 0-9.)" == *"8.5"* ]]"
reportResults reportResults