This repository was archived by the owner on Jul 8, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathupdate-vr-apps.sh
More file actions
executable file
·47 lines (41 loc) · 1.52 KB
/
update-vr-apps.sh
File metadata and controls
executable file
·47 lines (41 loc) · 1.52 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
#!/bin/bash
cd $(dirname -- "$(readlink -f -- "$BASH_SOURCE")")
if [ "$EUID" -eq 0 ]; then
echo "Please don't run this script as root (no sudo)."
exit 1
fi
source ./env.sh
source ./helper-functions.sh
source ./setup-env.sh
if [ "$(sanity_check_for_container)" -eq 1 ]; then
echor "Couldn't find alvr container."
echor "Please report setup.log and list bellow to https://github.com/alvr-org/ALVR-Distrobox-Linux-Guide/issues"
distrobox list
exit 1
fi
echog "Updating alvr"
(
cd "$prefix" || exit 1
rm "$ALVR_STREAMER_NAME"
rm -r "$container_name/alvr_streamer_linux"
if [[ $IS_NIGHTLY -eq 1 ]]; then
wget -q --show-progress "$ALVR_NIGHTLY_STREAMER_LINK" || exit 1
else
wget -q --show-progress "$ALVR_STABLE_STREAMER_LINK" || exit 1
fi
chmod +x "$ALVR_STREAMER_NAME"
./"$ALVR_STREAMER_NAME" --appimage-extract
mv squashfs-root "$container_name/alvr_streamer_linux" || exit 1
)
echog "Downloading alvr apk"
rm "$prefix/alvr_client_android.apk"
if [[ $IS_NIGHTLY -eq 1 ]]; then
wget -q --show-progress -P "$prefix"/ "$NIGHTLY_ALVR_APK_LINK" || echor "Could not download apk, please download it from $NIGHTLY_ALVR_APK_LINK manually."
else
wget -q --show-progress -P "$prefix"/ "$ALVR_APK_LINK" || echor "Could not download apk, please download it from $ALVR_APK_LINK manually."
fi
echog "Reinstalling wlxoverlay"
rm "$prefix/$WLXOVERLAY_FILENAME"
wget -O "$prefix/$WLXOVERLAY_FILENAME" -q --show-progress "$WLXOVERLAY_LINK"
chmod +x "$prefix/$WLXOVERLAY_FILENAME"
echog "Update finished."