参考自https://www.hiczp.com/post-142.html
本人尝试过后成功
环境: Elementory 0.41 | wine-2.16 (Staging) | TIM 1.2.0
这里的 TIM 指 Tencent TIM
安装wine
详见此 https://wine-staging.com/installation.html
Start by importing the key for our repository:
wget -nc https://repos.wine-staging.com/wine/Release.key
sudo apt-key add Release.key
Then use the following command to add our repository to your /etc/apt/sources.list file:
sudo apt-add-repository 'https://dl.winehq.org/wine-builds/ubuntu/'
As a next step, please update the package cache and install Wine Staging:
sudo apt-get update
sudo apt-get install --install-recommends winehq-staging
You should now be able to start Wine Staging. For more information about using Wine you can take a look at the Wine User Guide.
然后安装以下组件
sudo apt install wine-mono
sudo apt install wine-gecko
拷贝一份Windows字体
windows字体在 c:\windows\fonts
复制到 ~/.wine/drive_c/windows/Fonts
现在我们重载 wine 的所有配置,使用命令行
trans@tt:~$ wineboot
我们从腾讯网站下载得到 TIM 安装包并安装他,不要用开机启动。
之后我们运行它,会发现无法输入账户,这个问题出在 wine 对一些 API 的实现不完全。这种事情 Wine 早就预料到,因此提供了一种备选方案,即允许使用原装 windows dll 替代 wine 重写的本地代码的实现库,虽然会降低效能,但是至少可以避免一些bug。
为了完美运行 TIM ,我们需要替换 riched20 ,如图所示
将其调为 原装, 即该 dll 强制使用 windows 原装 dll。
之后我们点击确定,再刷新一次配置。
wineboot
安装Tim命令
wine Tim1.2.0.exe