Skip to content

Commit e5b84c9

Browse files
committed
Install dependencies with function
1 parent 9ed1684 commit e5b84c9

File tree

1 file changed

+24
-22
lines changed

1 file changed

+24
-22
lines changed

install/free-games-claimer-install.sh

Lines changed: 24 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -28,26 +28,27 @@ setup_deb822_repo \
2828
"any" \
2929
"main"
3030

31-
$STD apt-get install -y \
32-
git \
33-
ratpoison \
34-
virtualgl \
35-
turbovnc \
36-
websockify \
37-
libnss3 \
38-
libnspr4 \
39-
libatk1.0-0 \
40-
libatk-bridge2.0-0 \
41-
libcups2 \
42-
libxkbcommon0 \
43-
libatspi2.0-0 \
44-
libxcomposite1 \
45-
libgbm1 \
46-
libpango-1.0-0 \
47-
libcairo2 \
48-
libasound2 \
49-
libxfixes3 \
50-
libxdamage1
31+
install_packages_with_retry \
32+
"git" \
33+
"ratpoison" \
34+
"virtualgl" \
35+
"turbovnc" \
36+
"websockify" \
37+
"libnss3" \
38+
"libnspr4" \
39+
"libatk1.0-0" \
40+
"libatk-bridge2.0-0" \
41+
"libcups2" \
42+
"libxkbcommon0" \
43+
"libatspi2.0-0" \
44+
"libxcomposite1" \
45+
"libgbm1" \
46+
"libpango-1.0-0" \
47+
"libcairo2" \
48+
"libasound2" \
49+
"libxfixes3" \
50+
"libxdamage1"
51+
5152
msg_ok "Installed Dependencies"
5253

5354
NODE_VERSION="22" setup_nodejs
@@ -65,9 +66,10 @@ msg_info "Installing NPM Packages"
6566
$STD npm install
6667
$STD npx patchright install chromium --no-shell
6768
msg_ok "Installed NPM Packages"
69+
70+
# Install noVNC after patchright to avoid conflicts
6871
msg_info "Install noVNC"
69-
$STD apt-get install -y novnc
70-
$STD apt-get autoremove -y
72+
install_packages_with_retry novnc
7173
msg_ok "Installed noVNC"
7274
$STD ln -s /usr/share/novnc/vnc_auto.html /usr/share/novnc/index.html
7375

0 commit comments

Comments
 (0)