From d68cf8e55ae3f60cfc4534f226fb60a6e2454b18 Mon Sep 17 00:00:00 2001 From: Cuynu Date: Sat, 25 Jul 2026 16:54:18 +0700 Subject: [PATCH] feat: update linux native version Signed-off-by: Cuynu --- README.md | 31 +++--------- lotus.sh | 54 ++++++--------------- LotusChat.desktop => old/LotusChat.desktop | 0 lotus_ic.png => old/lotus_ic.png | Bin 4 files changed, 22 insertions(+), 63 deletions(-) rename LotusChat.desktop => old/LotusChat.desktop (100%) rename lotus_ic.png => old/lotus_ic.png (100%) diff --git a/README.md b/README.md index 77ef2fa..8171c45 100644 --- a/README.md +++ b/README.md @@ -1,40 +1,25 @@ -# Lotus Chat for WINE (Linux) - - - -- This script will download, extract then install Lotus Chat (Windows version) to `/opt/lotuschat` and run with WINE on user prefix (not Bottle) - -## Why this script exists ? -- Official Lotus Chat installer always throw this error if you trying to run under WINE. The only way to run Lotus Chat on WINE are extract it's installer, then run directly. - - +# Lotus Chat Linux ## Usage -You need to have `wine` (Stable/Staging) and `wget` installed (not Bottle Wine) !!! - -Clone repository, then run script (requires sudo cuz copying to /opt) +Clone repository, then run script ``` -git clone https://git.disroot.org/cuynu/lotuschat-wine.git -cd lotuschat-wine +git clone https://git.disroot.org/cuynu/lotuschat-linux.git +cd lotuschat-linux ./lotus.sh ``` -- Script will automatically download Lotus Chat installer and innounp to `temp` folder, then copy `Lotus.exe` and `Updater.exe` to `/opt/lotuschat/` and then copy LotusChat.desktop to current user. -- Run ` wine /opt/lotuschat/Lotus.exe` or launch from application list +- Script will automatically download Lotus Chat installer to `~/.local/LotusChat` then run Lotus Chat +- It will also create the shortcut in app launcher. - Enjoy :> ## Uninstall ``` -sudo rm -rf '/opt/lotuschat/' -sudo rm -rf '~/.wine/drive_c/users/{username}/AppData/Roaming/Lotus Chat' -sudo rm ~/.local/share/applications/LotusChat.desktop +rm -rf '~/.local/LotusChat' ``` # Credits -[Lotus Chat](https://lotuschat.vn) for Windows installer - -[Jürgen Rathlev](https://github.com/jrathlev/InnoUnpacker-Windows-GUI/blob/master/innounp-2) for innounp +[Lotus Chat](https://lotuschat.vn) for Linux installer diff --git a/lotus.sh b/lotus.sh index c5594a4..bf82a1b 100755 --- a/lotus.sh +++ b/lotus.sh @@ -1,14 +1,5 @@ #!/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 @@ -17,44 +8,27 @@ 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 !!!" + exit 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 +rm -f lotus* +rm -f Lotus* -# Create directory from main WINE prefix -sudo rm -rf /opt/lotuschat/ > /dev/null 2>&1 -sudo mkdir /opt/lotuschat/ > /dev/null 2>&1 +$WGET https://lotuspc.mediacdn.vn/LotusUpdater/linux/setup/LotusChat_Ubuntu_400.zip -O lotus.zip -q --show-progress +[ -f lotus.zip ] && $UNZIP -o lotus.zip +mkdir -p ~/.local/LotusChat +cp Lotus ~/.local/LotusChat -# Copy icon to icons dir -sudo cp -f ~/lotuschat-wine/lotus_ic.png /opt/lotuschat/ +# clean up files +echo "Cleaning up..." +rm -rf lotus.zip Lotus -# 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]..." +echo "Lotus Chat now installed!" +echo "To uninstall, remove [~/.local/LotusChat] folder!" +~/.local/LotusChat/Lotus diff --git a/LotusChat.desktop b/old/LotusChat.desktop similarity index 100% rename from LotusChat.desktop rename to old/LotusChat.desktop diff --git a/lotus_ic.png b/old/lotus_ic.png similarity index 100% rename from lotus_ic.png rename to old/lotus_ic.png