#!/usr/bin/env bash
set -e
INSTALL_BIN="/usr/local/bin/fastvideo"
INSTALL_DESK="/usr/share/applications/fastvideo.desktop"
INSTALL_ICON="/usr/share/pixmaps/fastvideo.svg"

echo "Instalando FastVideo..."
sudo install -m755 fastvideo      "$INSTALL_BIN"
sudo install -m644 fastvideo.desktop "$INSTALL_DESK"
sudo install -m644 fastvideo.svg  "$INSTALL_ICON"
echo "Listo. Ejecuta: fastvideo <video>"

# Update desktop database
sudo update-desktop-database 2>/dev/null || true
