No description
Find a file
2024-07-17 12:34:43 +00:00
base.sh Update base.sh 2024-07-17 12:28:31 +00:00
firefox.sh Update firefox.sh 2024-07-17 12:30:10 +00:00
i3:base.sh Update i3:base.sh 2024-07-17 12:29:23 +00:00
kdeplasma.sh Update kdeplasma.sh 2024-07-17 00:41:44 +00:00
README.md Add README.md 2024-07-17 02:00:22 +00:00
remmina.sh Update remmina.sh 2024-07-17 12:34:43 +00:00

Updating noVNC

# Optional: cd into temporary directory

cd $(mktemp -d)

# Fetch noVNC latest tag

NOVNC_VERSION=$(curl --fail -s https://api.github.com/repos/novnc/noVNC/releases/latest |\
    grep tag_name |\
    sed -e 's/^[ \t]*"tag_name": "//' -e 's/",$//')
WEBSOCKIFY_VERSION=$(curl --fail -s https://api.github.com/repos/novnc/websockify/releases/latest |\
    grep tag_name |\
    sed -e 's/^[ \t]*"tag_name": "//' -e 's/",$//')

# Download releases

curl --fail --silent --remote-name https://github.com/novnc/noVNC/archive/refs/tags/${NOVNC_VERSION}.tar.gz & \
curl --fail --silent --remote-name https://github.com/novnc/websockify/archive/refs/tags/${WEBSOCKIFY_VERSION}.tar.gz & \
wait

# Untar packages

for tar in $(ls ./*.tar.gz)
do
    tar xf ./${tar}
    rm ./${tar}
done

# Unify packages

mv ./noVNC-* ./novnc
mv ./websockify-* ./novnc/utils/websockify