add abouttxt
parent
a662e1b35e
commit
25ba737f63
|
|
@ -2,6 +2,12 @@
|
||||||
|
|
||||||
if [ "$1" = "votecoin" ]; then
|
if [ "$1" = "votecoin" ]; then
|
||||||
NAME="VoteCoin Wallet"
|
NAME="VoteCoin Wallet"
|
||||||
|
ABOUT="VoteCoin Wallet is a crypto currency wallet,
|
||||||
|
forked from ZCash, which itslef forked from Bitcoin.
|
||||||
|
It supports fully anonymous transactions and voting.
|
||||||
|
Receive free 10 VOT coins for installing the wallet.
|
||||||
|
In the future, VoteCoin will be used for decision
|
||||||
|
funding in Slax."
|
||||||
TMP="/tmp/votecoin.tar.gz"
|
TMP="/tmp/votecoin.tar.gz"
|
||||||
EXECUTABLE="/opt/VoteCoin Wallet-linux-x64/VoteCoin Wallet"
|
EXECUTABLE="/opt/VoteCoin Wallet-linux-x64/VoteCoin Wallet"
|
||||||
INSTALL="wget -O $TMP 'https://votecoin.site/download.php?os=linux' && tar -xf $TMP -C /opt && rm -f $TMP && apt install --yes libxss1 libgconf-2-4 libnss3"
|
INSTALL="wget -O $TMP 'https://votecoin.site/download.php?os=linux' && tar -xf $TMP -C /opt && rm -f $TMP && apt install --yes libxss1 libgconf-2-4 libnss3"
|
||||||
|
|
@ -11,6 +17,9 @@ fi
|
||||||
|
|
||||||
if [ "$1" = "vlc" ]; then
|
if [ "$1" = "vlc" ]; then
|
||||||
NAME="VLC Video Player"
|
NAME="VLC Video Player"
|
||||||
|
ABOUT="VLC Video Player is a free and open source multimedia player
|
||||||
|
and framework that plays most multimedia files as well as DVDs,
|
||||||
|
Audio CDs, CVDs, and various streaming protocols."
|
||||||
EXECUTABLE="/usr/bin/vlc"
|
EXECUTABLE="/usr/bin/vlc"
|
||||||
INSTALL="apt install --yes vlc"
|
INSTALL="apt install --yes vlc"
|
||||||
POSTINSTALL="rm /usr/share/applications/vlc.desktop; mkdir /home/guest/.config/vlc; echo '[qt4]
|
POSTINSTALL="rm /usr/share/applications/vlc.desktop; mkdir /home/guest/.config/vlc; echo '[qt4]
|
||||||
|
|
@ -20,6 +29,8 @@ fi
|
||||||
|
|
||||||
if [ "$1" = "chromium" ]; then
|
if [ "$1" = "chromium" ]; then
|
||||||
NAME="Chromium Web Browser"
|
NAME="Chromium Web Browser"
|
||||||
|
ABOUT="Chromium is a free and open source version of
|
||||||
|
the famous Chrome browser, developed by Google."
|
||||||
EXECUTABLE="/usr/bin/chromium"
|
EXECUTABLE="/usr/bin/chromium"
|
||||||
INSTALL="apt install --yes chromium"
|
INSTALL="apt install --yes chromium"
|
||||||
POSTINSTALL="rm -f /usr/share/applications/chromium.desktop"
|
POSTINSTALL="rm -f /usr/share/applications/chromium.desktop"
|
||||||
|
|
@ -32,6 +43,12 @@ shift
|
||||||
# do not touch anything below this line
|
# do not touch anything below this line
|
||||||
# ------------------------------------------------
|
# ------------------------------------------------
|
||||||
|
|
||||||
|
if [ "$ABOUT" != "" ]; then
|
||||||
|
ABOUT="$ABOUT
|
||||||
|
|
||||||
|
"
|
||||||
|
fi
|
||||||
|
|
||||||
|
|
||||||
if [ "$EXECUTABLE" = "" ]; then
|
if [ "$EXECUTABLE" = "" ]; then
|
||||||
exit
|
exit
|
||||||
|
|
@ -45,7 +62,7 @@ if [ ! -f "$EXECUTABLE" ]; then
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if gtkdialog -i /usr/share/icons/gnome/16x16/status/dialog-question.png -t Install -m "$NAME is not yet installed.
|
if gtkdialog -i /usr/share/icons/gnome/16x16/status/dialog-question.png -t Question -m "$ABOUT$NAME is not yet installed.
|
||||||
Do you like to download and install it now?" -y Yes -n No; then
|
Do you like to download and install it now?" -y Yes -n No; then
|
||||||
xterm -ls -e bash --login -c -- "$INSTALL; $POSTINSTALL"
|
xterm -ls -e bash --login -c -- "$INSTALL; $POSTINSTALL"
|
||||||
fi
|
fi
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue