Kod: Zaznacz cały
#!/bin/bash
#-*- coding: utf-8 -*-
##This software is available to you under the terms of the GPL-3, see "/usr/share/common-licenses/GPL-3".
if [ -e botanicula-linux*.zip ]
then
echo "Botanicula found. Starting installation."
mkdir ~/.botanicula_bin ~/.botanicula_bin/air ~/.botanicula_bin/Botanicula
mv botanicula-linux*.zip ~/.botanicula_bin/botanicula-linux.zip
cd ~/.botanicula_bin/
wget http://airdownload.adobe.com/air/lin/download/2.6/AdobeAIRSDK.tbz2
tar xvjf AdobeAIRSDK.tbz2 -C air
unzip botanicula-linux.zip
unzip -d Botanicula Botanicula.air
echo "
[Desktop Entry]
Version=1.0
Type=Application
Name=Botanicula
Comment=
Exec=./air/bin/adl -nodebug Botanicula/META-INF/AIR/application.xml Botanicula/
Icon=$HOME/.botanicula_bin/Botanicula/data/icons/b512.png
Path=$HOME/.botanicula_bin
Terminal=false
StartupNotify=false
Categories=Game;" > ~/.local/share/applications/botanicula.desktop
chmod 777 ~/.local/share/applications/botanicula.desktop
echo "Cleaning"
rm AdobeAIRSDK.tbz2 botanicula-linux.zip Botanicula.air
echo "Installation complete!"
else
echo "Botanicula not found. Please check if you are in work directory containing botanicula-linux-*.zip file."
fi