Skip to content

Instantly share code, notes, and snippets.

@willstare
Last active September 26, 2018 01:40
Show Gist options
  • Save willstare/346f3442f86b62a01922110efa2a8375 to your computer and use it in GitHub Desktop.
Save willstare/346f3442f86b62a01922110efa2a8375 to your computer and use it in GitHub Desktop.
Install Flixxo on Solus
#!/bin/bash
# This script will install the latest flixxo app from their website. It will then create
# a working flixxo.desktop file after installation is complete.
# Warning: This script does not verify/validate what it downloads from Flixxo's site. USE AT YOUR OWN RISK
# Check back at https://gist.github.com/willstare/346f3442f86b62a01922110efa2a8375 for updates.
echo "This script must be run with sudo/root!"
# Delete /tmp/flixxo if it exists
rm -R /tmp/flixxo
# Make a new temporary directory
mkdir /tmp/flixxo
echo ""
echo "Please paste in the current download URL for Flixxo:\n"
read flixxoURL
wget -O /tmp/flixxo/Flixxo-beta.deb $flixxoURL
# Change directory to /tmp/flixxo to use ar
cd /tmp/flixxo
# Extract Flixxo-beta.deb
ar x Flixxo-beta.deb
# Extrace data.tar.xz to /tmp/flixxo
tar -xvf /tmp/flixxo/data.tar.xz
# Copy recursive/force Flixxo to /opt
cp -rf /tmp/flixxo/opt/Flixxo /opt
# Copy recursive/force share to /usr
# This directory includes icons, etc.
cp -rf /tmp/flixxo/usr/share /usr/
# Generate new flixxo.desktop file that works with Solus menu.
echo "[Desktop Entry]" > /usr/share/applications/flixxo.desktop
echo "Name=Flixxo" >> /usr/share/applications/flixxo.desktop
echo "Comment=" >> /usr/share/applications/flixxo.desktop
echo "Exec=\"/opt/Flixxo/flixxo\" %U" >> /usr/share/applications/flixxo.desktop
echo "Terminal=false" >> /usr/share/applications/flixxo.desktop
echo "Type=Application" >> /usr/share/applications/flixxo.desktop
echo "Icon=/usr/share/icons/hicolor/128x128/apps/flixxo.png" >> /usr/share/applications/flixxo.desktop
echo "Categories=Network;">> /usr/share/applications/flixxo.desktop
echo "Cleaning up temporary files..."
# Delete /tmp/flixxo
rm -R /tmp/flixxo
echo "Done."
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment