Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Dockerfile.template
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM node:20.19.2-bookworm
FROM node:20.19.5-trixie

ENV DEBIAN_FRONTEND=noninteractive

Expand Down
14 changes: 5 additions & 9 deletions build/install_chromium
Original file line number Diff line number Diff line change
Expand Up @@ -24,23 +24,19 @@ then

cp -a "${BASE_DIR}/rpi/raspi.list" "/etc/apt/sources.list.d/"
cp -a "${BASE_DIR}/rpi/raspberrypi-archive-stable.gpg" "/etc/apt/trusted.gpg.d/"

# The RPi-patched chromium package is called chromium-browser
CHROMIUM_PACKAGE="chromium-browser"
else
echo "Defaulting to vanilla chromium"
# The node library launches /usr/bin/chromium-browser
# which is not provided by the upstream package
ln -s /usr/bin/chromium /usr/bin/chromium-browser
fi

# The node library launches /usr/bin/chromium-browser
# which is not provided by the upstream package
ln -sf /usr/bin/chromium /usr/bin/chromium-browser

# mimic previous balenalib "install_packages" behavior:
apt-get update && apt-get install -y --no-install-recommends \
${CHROMIUM_PACKAGE} \
chromium-common \
libgles2-mesa \
lsb-release \
mesa-vdpau-drivers \
mesa-vulkan-drivers \
scrot \
x11-xserver-utils \
xserver-xorg-input-evdev \
Expand Down
4 changes: 2 additions & 2 deletions build/rpi/raspi.list
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
deb http://archive.raspberrypi.com/debian/ bookworm main
deb http://archive.raspberrypi.com/debian/ trixie main
# Uncomment line below then 'apt-get update' to enable 'apt-get source'
#deb-src http://archive.raspberrypi.com/debian/ bookworm main
#deb-src http://archive.raspberrypi.com/debian/ trixie main
1 change: 1 addition & 0 deletions src/server.js
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,7 @@ let launchChromium = async function(url) {
'--num-raster-threads=4',
'--ignore-gpu-blocklist',
'--enable-gpu-rasterization',
'--enable-features=Vulkan',
];

flags = flags.concat(gpuFlags);
Expand Down