Add HTTPS file server app
parent
f39fb125b6
commit
18a3d0007d
@ -0,0 +1 @@
|
|||||||
|
|
@ -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 ->
|
Binary file not shown.
After Width: | Height: | Size: 2.0 KiB |
Binary file not shown.
After Width: | Height: | Size: 8.2 KiB |
@ -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
|
@ -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
|
@ -0,0 +1 @@
|
|||||||
|
http://www.rejetto.com/hfs/?f=intro
|
Loading…
Reference in New Issue