#!/bin/bash # Check if WINE exists or not if [ -x /usr/bin/wine ] then WINE=/usr/bin/wine wineserver -k else echo "[ERROR] : wine not found, cannot continue !!!" exit fi # Check if wget exists or not if [ -x /usr/bin/wget ] then WGET=/usr/bin/wget else echo "[ERROR] wget not found, cannot continue !!!" exit fi # Check if unzip exists or not if [ -x /usr/bin/unzip ] then UNZIP=/usr/bin/unzip else echo "[ERROR] unzip not found, cannot continue !!!" fi echo "Downloading innoup-2 from GitHub..." rm -rf temp > /dev/null 2>&1 mkdir temp cd temp $WGET https://github.com/jrathlev/InnoUnpacker-Windows-GUI/raw/refs/heads/master/innounp-2/bin/innounp-2.zip -q --show-progress echo "Extracting..." $UNZIP -o innounp-2.zip rm -rf innounp-2.zip rm Unpack.ico echo "Downloading Lotus Chat v3.9.2..." $WGET https://lotuspc.mediacdn.vn/LotusUpdater/win/setup/Setup_LChat_v3.9.2.exe -q --show-progress echo "Unpacking installer..." $WINE innounp.exe -m Setup_LChat_v3.9.2.exe -e # Create directory from main WINE prefix sudo rm -rf /opt/lotuschat/ > /dev/null 2>&1 sudo mkdir /opt/lotuschat/ > /dev/null 2>&1 # Copy icon to icons dir sudo cp -f ~/lotuschat-wine/lotus_ic.png /opt/lotuschat/ # Copy launcher to application list chmod 755 ~/lotuschat-wine/LotusChat.desktop cp -f ~/lotuschat-wine/LotusChat.desktop ~/.local/share/applications # Copy files to lotuschat folder sudo mv Lotus.exe /opt/lotuschat/ sudo mv Updater.exe /opt/lotuschat/ rm -rf * echo "Lotus Chat now installed to [/opt/lotuschat] !!" echo "To uninstall, simply rm [/opt/lotuschat] folder..." echo "For login/cache data, remove [~/wine/drive_c/users/{username}/AppData/Roaming/Lotus Chat]..."