PublicFiles/Artian-Apps/apps/Https File Server/install-32

18 lines
547 B
Bash

#!/bin/bash
if [ ! -f ~/hfs.exe ];then
wget https://www.rejetto.com/hfs/hfs.exe || error "Failed to download hfs.exe!"
fi
"${DIRECTORY}/manage" install-if-not-installed 'Wine (x86)' || error "Wine is required to run HTTPS File Server but it failed to install!"
echo "Creating menu button..."
echo "[Desktop Entry]
Type=Application
Version=1.0
Name=HTTPS File Server
Exec=wine $HOME/hfs.exe
Comment=Simple file sharing webserver
Icon=$(dirname "$0")/icon-64.png
Categories=Network;
StartupNotify=true" > ~/.local/share/applications/hfs.desktop