libcurl.js/server/run.sh

19 lines
No EOL
397 B
Bash
Executable file

#!/bin/bash
#install dependencies and run the proxy server
set -e
if [ ! -d ".venv" ]; then
python3 -m venv .venv
fi
source .venv/bin/activate
if ! python3 -c "import asyncio_socks_server, websockify" 2> /dev/null; then
pip3 install asyncio-socks-server
git clone https://github.com/novnc/websockify -b master --depth=1
pip3 install ./websockify
rm -rf websockify
fi
python3 main.py