crystallfoxx

Hitleap Ubuntu

Feb 14th, 2016
646
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 1.41 KB | None | 0 0
  1. #!/bin/sh
  2.  
  3. sudo apt-get update -y
  4. sudo apt-get install libc6 tar xz-utils -y
  5.  
  6. hlvFile='/opt/hitleapviewer.tar.xz'
  7. if [ -d /opt/hitleapviewer ]; then rm -r /opt/hitleapviewer; fi
  8. if (($(uname -m) != 'x86_64')); then echo 'El HitLeap Viewer solo aguanta Linux de 64-bit (x86_64)';
  9. elif wget --no-check-certificate 'https://hitleap.com/viewer/latest?platform=Linux' -O "$hlvFile"; then
  10.     mkdir -p /opt/hitleapviewer;
  11.     tar xpvf "$hlvFile" -C /opt/hitleapviewer;
  12.     echo rm "$hlvFile";
  13. else echo 'No Se Pudo Descargar el HitLeap Viewer'; fi
  14.  
  15. if [ -d /opt/hitleapviewer ]; then
  16.     # Crear icono
  17.     hlvIcon='/usr/share/applications/hitleapviewer.desktop'
  18.     {
  19.     echo '[Desktop Entry]' > "$hlvIcon";
  20.     echo 'Version=1.0';
  21.     echo 'Name=HitLeap Viewer';
  22.     echo 'Name[es]=Visor HitLeap';
  23.     echo 'Comment=HitLeap is a Traffic Exchange service, which automatically delivers free traffic to your website.';
  24.     echo 'Comment[es]=HitLeap es un servicio de Intercambio de Trafico, el cual entrega automaticamente trafico gratis a tu sitio.';
  25.     echo 'GenericName=Traffic Exchange Application';
  26.     echo 'GenericName[es]=Aplicacion de Intercambio de Trafico';
  27.     echo "Exec=sh -c '/opt/hitleapviewer/app/HitLeap-Viewer' dummy %k";
  28.     echo 'Type=Application';
  29.     echo 'Icon=applications-internet';
  30.     echo 'Categories=Network;WebBrowser;Viewer;';
  31.     echo;
  32.     } > "$hlvIcon"
  33.     cp "$hlvIcon" ~/Desktop
  34. fi
Advertisement
Add Comment
Please, Sign In to add comment