feat: update linux native version
Signed-off-by: Cuynu <cuynu@proton.me>
This commit is contained in:
parent
a0980ccde1
commit
d68cf8e55a
4 changed files with 22 additions and 63 deletions
31
README.md
31
README.md
|
|
@ -1,40 +1,25 @@
|
|||
# Lotus Chat for WINE (Linux)
|
||||
|
||||
<img src="https://gitlab.com/cuynu/lotuschat-wine/-/wikis/uploads/d530d5744eaefd5c03445ee924ccbaba/image.png">
|
||||
|
||||
- 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.
|
||||
|
||||
<img src="https://gitlab.com/cuynu/lotuschat-wine/-/wikis/uploads/b9ba85a76e970667c51fc38daf6bd7e1/image.png">
|
||||
# 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
|
||||
|
||||
|
||||
|
|
|
|||
54
lotus.sh
54
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
|
||||
|
|
|
|||
15
old/LotusChat.desktop
Executable file
15
old/LotusChat.desktop
Executable file
|
|
@ -0,0 +1,15 @@
|
|||
[Desktop Entry]
|
||||
Comment=Offiical Lotus Chat desktop verison for Windows/WINE.\s
|
||||
Exec=wine /opt/lotuschat/Lotus.exe
|
||||
GenericName=
|
||||
Icon=/opt/lotuschat/lotus_ic.png
|
||||
Name=Lotus Chat
|
||||
NoDisplay=false
|
||||
Path=
|
||||
PrefersNonDefaultGPU=false
|
||||
StartupNotify=true
|
||||
Terminal=false
|
||||
TerminalOptions=
|
||||
Type=Application
|
||||
X-KDE-SubstituteUID=false
|
||||
X-KDE-Username=
|
||||
BIN
old/lotus_ic.png
Normal file
BIN
old/lotus_ic.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 125 KiB |
Loading…
Reference in a new issue