diff --git a/apps/Wechat/install-32 b/apps/Wechat/install-32 index 3a35f14..d8d3208 100755 --- a/apps/Wechat/install-32 +++ b/apps/Wechat/install-32 @@ -14,6 +14,9 @@ if ! command -v wine || [ "$(cat "${DIRECTORY}/data/status/Wine (x86)" 2>/dev/nu fi ulimit -c unlimited +echo "Note that during this installation, a error may pop up saying \"Gecko\" or \"Mono\" isn't installed. Don't worry, that error is normal. Just click the \"Install\" button!" +read -p "Press [Enter] to continue installaton." + rm -rf ~/.config/wechat-prefix mkdir -p ~/.config/wechat-prefix @@ -36,5 +39,21 @@ wget -O ~/WeChatSetup.exe https://dldir1.qq.com/weixin/Windows/WeChatSetup.exe WINEPREFIX=~/.config/wechat-prefix wine ~/WeChatSetup.exe rm ~/WeChatSetup.exe -echo 'Install complete! Open WeChat now by using the desktop shortcut in your desktop or in the start menu.' +rm ~/.local/share/applications/wine/Programs/WeChat/UninstallWeChat.desktop +rm ~/.local/share/desktop-directories/wine-Programs-WeChat.directory +rm -rf ~/.local/share/applications/wine/Programs/WeChat/ +rm ~/Desktop/WeChat.desktop +rm ~/.local/share/applications/wine/Programs/WeChat/WeChat.desktop + +echo "[Desktop Entry] +Name=WeChat +Exec=env BOX86_NOBANNER=1 env WINEPREFIX=$HOME/.config/wechat-prefix wine $HOME/.config/wechat-prefix/drive_c/Program\ Files/Tencent/WeChat/WeChat.exe +Type=Application +StartupNotify=true +Path=$HOME/.config/wechat-prefix/drive_c/Program\ Files/Tencent/WeChat/ +Icon=$HOME/pi-apps/apps/Wechat/icon-64.png" > ~/Desktop/WeChat.desktop + +cp ~/Desktop/WeChat.desktop ~/.local/share/applications/WeChat.desktop + +echo 'Install complete! Open WeChat now by using the desktop shortcut in your desktop or in the start menu.'