优化中文字体安装方案

This commit is contained in:
李寻欢 2024-02-24 10:59:47 +08:00
parent 3d971c9f42
commit 73c54079d1
2 changed files with 13 additions and 7 deletions

View File

@ -27,7 +27,7 @@ RUN dpkg --add-architecture i386 && \
apt-key add winehq.key && \
apt-add-repository 'deb https://dl.winehq.org/wine-builds/ubuntu/ jammy main' && \
apt-get update -y && \
apt-get install -y --install-recommends winehq-stable && \
apt-get install -y --install-recommends winehq-stable winetricks && \
wine --version
# 配置运行环境等信息
@ -48,17 +48,16 @@ RUN useradd -m app && usermod -aG sudo app && echo 'app ALL=(ALL) NOPASSWD:ALL'
USER app
WORKDIR /home/app
# 安装wine-mono
# 安装wine-mono和中文字体
COPY install-wine-mono.sh ./
COPY install-wine-chinese.sh ./
RUN bash -c 'sudo -E supervisord -c /etc/supervisord.conf -l /var/log/supervisord.log &' && \
sleep 5 && \
sudo chown -R app:app ./install-wine-mono.sh && \
sudo chown -R app:app ./install-*.sh && \
./install-wine-mono.sh && \
sudo rm -rf ./install-wine-mono.sh
# 处理中文字体
RUN sudo apt install -y winetricks && winetricks cjkfonts
./install-wine-chinese.sh && \
sudo rm -rf ./install-*.sh
COPY entrypoint.sh /entrypoint.sh

7
install-wine-chinese.sh Normal file
View File

@ -0,0 +1,7 @@
#!/usr/bin/env bash
echo "开始安装中文字体"
id
winetricks cjkfonts