推荐以软件仓库的方式安装wine
首先添加wine官方仓库的gpg公钥
wget -nc https://dl.winehq.org/wine-builds/winehq.key
sudo apt-key add winehq.key
添加仓库到apt
sudo add-apt-repository 'deb https://dl.winehq.org/wine-builds/ubuntu/ hirsute main'
hirsute 可以更改为其他发行版代号。
安装wine-stable
sudo apt install wine-stable
wine-stable会被安装到/opt/wine-stable
目录下
修改PATH变量
export PATH=$PATH:/opt/wine-stable/bin
启动winetricks选择install dll or component,安装ole32, rich20, rich32
将windows的所有fonts(位于C:\Windows\Fonts
目录下)复制到$WINEPREFIX/windows/fonts
目录下。
微信小程序需要[https://wiki.winehq.org/Gecko](https://wiki.winehq.org/Gecko)
运行winetricks
的uninstaller
,一个install
的按钮可以帮助你安装gecko
最后,运行explorer双击wechat的安装程序,既可完成安装