Закрыть
⬆ Вверх
Павлллл » Заметки » ne smotret' syda

#!/bin/bash

# Target directory

INSTALL_DIR="/usr/local/bin"

# Check if the target directory exists

if [ ! -d "$INSTALL_DIR" ]; then

 echo "Target directory '$INSTALL_DIR' does not exist. Creating..."

 sudo mkdir -p "$INSTALL_DIR"

fi

# Copy the files

sudo cp -r waterfox/* "$INSTALL_DIR"

# Create a desktop entry

cat > /usr/share/applications/waterfox.desktop << EOF

[Desktop Entry]

Name=Waterfox

Exec=/usr/local/bin/waterfox

Icon=/path/to/waterfox/icon.png # Replace with the actual icon path

Type=Application

Categories=Network;WebBrowser;

EOF

# Make the desktop entry executable

chmod +x /usr/share/applications/waterfox.desktop

echo "Waterfox has been installed to $INSTALL_DIR and a desktop entry has been created."

Будьте первым, кто оставит комментарий!