Merge pull request #1 from whalehub/dev
Replace official Chromium build with custom build from Woolyss
This commit is contained in:
commit
e0aa93c917
@ -1,25 +1,26 @@
|
|||||||
FROM m1k1o/neko:base
|
FROM m1k1o/neko:base
|
||||||
|
|
||||||
#
|
#
|
||||||
# install chromium
|
# install custom chromium build from woolyss with support for hevc/x265
|
||||||
RUN set -eux; apt-get update; \
|
RUN set -eux; apt-get update; \
|
||||||
apt-get install -y --no-install-recommends openbox unzip chromium; \
|
apt-get install -y --no-install-recommends libatk1.0-0 libatk-bridge2.0-0 libatomic1 libcups2 libgtk-3-0 libnss3 libpci3 libxcomposite1 libxss1 openbox xz-utils; \
|
||||||
|
wget -O - /tmp/chromium.tar.xz "https://github.com/macchrome/linchrome/releases/download/v83.0.4103.116-r756066-portable-ungoogled-Lin64/ungoogled-chromium_83.0.4103.116_1.vaapi_linux.tar.xz" | \
|
||||||
|
tar -xJf- -C /usr/lib; \
|
||||||
|
mv /usr/lib/ungoogled-chromium_83.0.4103.116_1.vaapi_linux /usr/lib/chromium; \
|
||||||
#
|
#
|
||||||
# install widevine module
|
# make required changes for sandbox mode
|
||||||
WIDEVINE_VERSION=$(wget --quiet -O - https://dl.google.com/widevine-cdm/versions.txt | tail -n 1); \
|
mv /usr/lib/chromium/chrome_sandbox /usr/lib/chromium/chrome-sandbox; \
|
||||||
wget -O /tmp/widevine.zip "https://dl.google.com/widevine-cdm/$WIDEVINE_VERSION-linux-x64.zip"; \
|
chown root:root /usr/lib/chromium/chrome-sandbox; \
|
||||||
unzip -p /tmp/widevine.zip libwidevinecdm.so > /usr/lib/chromium/libwidevinecdm.so; \
|
chmod 4755 /usr/lib/chromium/chrome-sandbox; \
|
||||||
chmod 644 /usr/lib/chromium/libwidevinecdm.so; \
|
|
||||||
rm /tmp/widevine.zip; \
|
|
||||||
#
|
#
|
||||||
# clean up
|
# clean up
|
||||||
apt-get --purge autoremove -y unzip; \
|
apt-get --purge autoremove -y xz-utils; \
|
||||||
apt-get clean -y; \
|
apt-get clean -y; \
|
||||||
rm -rf /var/lib/apt/lists/* /var/cache/apt/*
|
rm -rf /var/lib/apt/lists/* /var/cache/apt/*
|
||||||
|
|
||||||
#
|
#
|
||||||
# copy configuation files
|
# copy configuation files
|
||||||
COPY supervisord.conf /etc/neko/supervisord/chromium.conf
|
COPY supervisord.conf /etc/neko/supervisord/chromium.conf
|
||||||
COPY preferences.json /usr/share/chromium/master_preferences
|
COPY preferences.json /usr/lib/chromium/master_preferences
|
||||||
COPY policies.json /etc/chromium/policies/managed/policies.json
|
COPY policies.json /etc/chromium/policies/managed/policies.json
|
||||||
COPY openbox.xml /etc/neko/openbox.xml
|
COPY openbox.xml /etc/neko/openbox.xml
|
||||||
|
@ -13,7 +13,7 @@
|
|||||||
|
|
||||||
<applications>
|
<applications>
|
||||||
<!-- Match all windows and remove their decorations (obxprop | grep "^_OB_APP") -->
|
<!-- Match all windows and remove their decorations (obxprop | grep "^_OB_APP") -->
|
||||||
<application class="Chromium*" name="chromium-browser">
|
<application class="Chromium*" name="chromium-devel">
|
||||||
<decor>no</decor>
|
<decor>no</decor>
|
||||||
<maximized>true</maximized>
|
<maximized>true</maximized>
|
||||||
<focus>yes</focus>
|
<focus>yes</focus>
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
[program:chromium]
|
[program:chromium]
|
||||||
environment=HOME="/home/%(ENV_USER)s",USER="%(ENV_USER)s",DISPLAY="%(ENV_DISPLAY)s"
|
environment=HOME="/home/%(ENV_USER)s",USER="%(ENV_USER)s",DISPLAY="%(ENV_DISPLAY)s"
|
||||||
command=/usr/lib/chromium/chromium --window-position=0,0 --display=%(ENV_DISPLAY)s --start-maximized --bwsi --test-type --force-dark-mode --disable-file-system --disable-gpu --disable-software-rasterizer --disable-dev-shm-usage
|
command=/usr/lib/chromium/chrome-wrapper --window-position=0,0 --display=%(ENV_DISPLAY)s --start-maximized --bwsi --test-type --force-dark-mode --disable-file-system --disable-gpu --disable-software-rasterizer --disable-dev-shm-usage
|
||||||
autorestart=true
|
autorestart=true
|
||||||
priority=800
|
priority=800
|
||||||
user=%(ENV_USER)s
|
user=%(ENV_USER)s
|
||||||
|
Reference in New Issue
Block a user