From 414189efe243cd91bc37d6809677ac020322624b Mon Sep 17 00:00:00 2001 From: myve Date: Wed, 17 Jul 2024 02:00:22 +0000 Subject: [PATCH] Add README.md --- README.md | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 README.md diff --git a/README.md b/README.md new file mode 100644 index 0000000..e852698 --- /dev/null +++ b/README.md @@ -0,0 +1,34 @@ +# 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 +``` \ No newline at end of file