mirror of
https://github.com/Maks1mS/devcontainers-features.git
synced 2024-12-23 15:52:59 +03:00
try fix
This commit is contained in:
parent
e6b8f06415
commit
83b1e774b0
@ -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
|
||||||
|
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user