mirror of
https://github.com/ading2210/libcurl.js.git
synced 2025-05-13 06:20:02 -04:00
19 lines
No EOL
397 B
Bash
Executable file
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 |