feat: lotus.sh: update installer to 3.9.0 & minor changes
Signed-off-by: Cuynu <cuynu@proton.me>
This commit is contained in:
parent
efcbb4308f
commit
7db967d623
1 changed files with 22 additions and 7 deletions
29
lotus.sh
29
lotus.sh
|
|
@ -6,23 +6,38 @@ then
|
||||||
WINE=/usr/bin/wine
|
WINE=/usr/bin/wine
|
||||||
wineserver -k
|
wineserver -k
|
||||||
else
|
else
|
||||||
echo "WARN : WINE not found, cannot continue !!!"
|
echo "[ERROR] : wine not found, cannot continue !!!"
|
||||||
exit
|
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
|
fi
|
||||||
|
|
||||||
echo "Downloading innoup-2 from GitHub..."
|
echo "Downloading innoup-2 from GitHub..."
|
||||||
rm -rf temp > /dev/null 2>&1
|
rm -rf temp > /dev/null 2>&1
|
||||||
mkdir temp
|
mkdir temp
|
||||||
cd temp
|
cd temp
|
||||||
wget https://github.com/jrathlev/InnoUnpacker-Windows-GUI/raw/refs/heads/master/innounp-2/bin/innounp-2.zip -q --show-progress
|
$WGET https://github.com/jrathlev/InnoUnpacker-Windows-GUI/raw/refs/heads/master/innounp-2/bin/innounp-2.zip -q --show-progress
|
||||||
echo "Extracting..."
|
echo "Extracting..."
|
||||||
unzip -o innounp-2.zip
|
$UNZIP -o innounp-2.zip
|
||||||
rm -rf innounp-2.zip
|
rm -rf innounp-2.zip
|
||||||
rm Unpack.ico
|
rm Unpack.ico
|
||||||
echo "Downloading Lotus Chat v3.8.9..."
|
echo "Downloading Lotus Chat v3.9.0..."
|
||||||
wget https://lotuspc.mediacdn.vn/LotusUpdater/win/setup/Setup_LChat_v3.8.9.exe -q --show-progress
|
$WGET https://lotuspc.mediacdn.vn/LotusUpdater/win/setup/Setup_LChat_v3.9.0.exe -q --show-progress
|
||||||
echo "Unpacking installer..."
|
echo "Unpacking installer..."
|
||||||
$WINE innounp.exe -m Setup_LChat_v3.8.9.exe -e
|
$WINE innounp.exe -m Setup_LChat_v3.9.0.exe -e
|
||||||
|
|
||||||
# Create directory from main WINE prefix
|
# Create directory from main WINE prefix
|
||||||
sudo rm -rf /opt/lotuschat/ > /dev/null 2>&1
|
sudo rm -rf /opt/lotuschat/ > /dev/null 2>&1
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue