diff --git a/apps/Https File Server/credits b/apps/Https File Server/credits new file mode 100644 index 0000000..8b13789 --- /dev/null +++ b/apps/Https File Server/credits @@ -0,0 +1 @@ + diff --git a/apps/Https File Server/description b/apps/Https File Server/description new file mode 100644 index 0000000..de2af3f --- /dev/null +++ b/apps/Https File Server/description @@ -0,0 +1,5 @@ +Simple file-sharing webserver. Other computers on your local network can connect to your computer from the web browser and download files you share. +Or, you can enable port forwarding on your router so that anyone on the Internet can download your files. +This app uses Wine to run a windows exe file. + +To launch: Menu -> Applications -> diff --git a/apps/Https File Server/icon-24.png b/apps/Https File Server/icon-24.png new file mode 100644 index 0000000..d821126 Binary files /dev/null and b/apps/Https File Server/icon-24.png differ diff --git a/apps/Https File Server/icon-64.png b/apps/Https File Server/icon-64.png new file mode 100644 index 0000000..ca27a38 Binary files /dev/null and b/apps/Https File Server/icon-64.png differ diff --git a/apps/Https File Server/install-32 b/apps/Https File Server/install-32 new file mode 100755 index 0000000..7aee364 --- /dev/null +++ b/apps/Https File Server/install-32 @@ -0,0 +1,25 @@ +#!/bin/bash + +DIRECTORY="$(dirname "$(dirname "$( cd "$(dirname "$0")" >/dev/null 2>&1 ; pwd -P )")")" + +function error { + echo -e "\\e[91m$1\\e[39m" + exit 1 +} + +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 diff --git a/apps/Https File Server/uninstall b/apps/Https File Server/uninstall new file mode 100755 index 0000000..66492ef --- /dev/null +++ b/apps/Https File Server/uninstall @@ -0,0 +1,10 @@ +#!/bin/bash + +DIRECTORY="$(dirname "$(dirname "$( cd "$(dirname "$0")" >/dev/null 2>&1 ; pwd -P )")")" + +function error { + echo -e "\\e[91m$1\\e[39m" + exit 1 +} + +rm -f $HOME/hfs.exe ~/.local/share/applications/hfs.desktop diff --git a/apps/Https File Server/website b/apps/Https File Server/website new file mode 100644 index 0000000..cf2199b --- /dev/null +++ b/apps/Https File Server/website @@ -0,0 +1 @@ +http://www.rejetto.com/hfs/?f=intro