mirror of
https://git.myvelabs.com/novnc/archlinux.git
synced 2025-12-18 07:36:20 +00:00
Add README.md
This commit is contained in:
parent
b2fba532d4
commit
414189efe2
1 changed files with 34 additions and 0 deletions
34
README.md
Normal file
34
README.md
Normal file
|
|
@ -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
|
||||||
|
```
|
||||||
Loading…
Add table
Add a link
Reference in a new issue