update workflows.

This commit is contained in:
Miroslav Šedivý 2025-03-30 11:24:27 +02:00
parent 2f045e2c66
commit f396cea0a2
7 changed files with 25 additions and 34 deletions

View file

@ -19,6 +19,7 @@ jobs:
needs: [ build-base ] needs: [ build-base ]
strategy: strategy:
# Will build all images even if some fail. # Will build all images even if some fail.
fail-fast: false
matrix: matrix:
include: include:
- name: firefox - name: firefox

View file

@ -20,14 +20,12 @@ jobs:
needs: [ build-base ] needs: [ build-base ]
strategy: strategy:
# Will build all images even if some fail. # Will build all images even if some fail.
fail-fast: false
matrix: matrix:
include: include:
- name: firefox - name: firefox
dockerfile: Dockerfile.arm dockerfile: Dockerfile.arm
- name: chromium - name: chromium
dockerfile: Dockerfile.arm
- name: ungoogled-chromium
- name: tor-browser
- name: vlc - name: vlc
- name: xfce - name: xfce
with: with:

View file

@ -20,6 +20,7 @@ jobs:
needs: [ build-base ] needs: [ build-base ]
strategy: strategy:
# Will build all images even if some fail. # Will build all images even if some fail.
fail-fast: false
matrix: matrix:
include: include:
- name: firefox - name: firefox

View file

@ -20,6 +20,7 @@ jobs:
needs: [ build-base ] needs: [ build-base ]
strategy: strategy:
# Will build all images even if some fail. # Will build all images even if some fail.
fail-fast: false
matrix: matrix:
include: include:
- name: firefox - name: firefox

View file

@ -6,22 +6,30 @@ FROM $BASE_IMAGE
RUN set -eux; \ RUN set -eux; \
echo "deb http://ftp.de.debian.org/debian bookworm main" >> /etc/apt/sources.list; \ echo "deb http://ftp.de.debian.org/debian bookworm main" >> /etc/apt/sources.list; \
apt-get update; \ apt-get update; \
apt-get install -y --no-install-recommends unzip chromium chromium-common chromium-sandbox openbox; \ apt-get install -y --no-install-recommends chromium chromium-common chromium-sandbox openbox; \
# #
# install widevine module # install widevine module (only for x86_64)
CHROMIUM_DIR="/usr/lib/chromium"; \ CHROMIUM_DIR="/usr/lib/chromium"; \
WIDEVINE_VERSION=$(wget --quiet -O - https://dl.google.com/widevine-cdm/versions.txt | sort --version-sort | tail -n 1); \ ARCH=$(dpkg --print-architecture); \
wget -O /tmp/widevine.zip "https://dl.google.com/widevine-cdm/${WIDEVINE_VERSION}-linux-x64.zip"; \ if [ "${ARCH}" = "x86_64" ]; then \
mkdir -p "${CHROMIUM_DIR}/WidevineCdm/_platform_specific/linux_x64"; \ # https://commondatastorage.googleapis.com/chromeos-localmirror/distfiles/chromeos-lacros-arm64-squash-zstd-120.0.6098.0
unzip -p /tmp/widevine.zip LICENSE.txt > "${CHROMIUM_DIR}/WidevineCdm/LICENSE"; \ apt-get install -y --no-install-recommends unzip; \
unzip -p /tmp/widevine.zip manifest.json > "${CHROMIUM_DIR}/WidevineCdm/manifest.json"; \ WIDEVINE_ARCH="x64"; \
unzip -p /tmp/widevine.zip libwidevinecdm.so > "${CHROMIUM_DIR}/WidevineCdm/_platform_specific/linux_x64/libwidevinecdm.so"; \ WIDEVINE_VERSION=$(wget --quiet -O - https://dl.google.com/widevine-cdm/versions.txt | sort --version-sort | tail -n 1); \
find "${CHROMIUM_DIR}/WidevineCdm" -type d -exec chmod 0755 '{}' \;; \ wget -O /tmp/widevine.zip "https://dl.google.com/widevine-cdm/${WIDEVINE_VERSION}-linux-${WIDEVINE_ARCH}.zip"; \
find "${CHROMIUM_DIR}/WidevineCdm" -type f -exec chmod 0644 '{}' \;; \ mkdir -p "${CHROMIUM_DIR}/WidevineCdm/_platform_specific/linux_${WIDEVINE_ARCH}"; \
rm /tmp/widevine.zip; \ unzip -p /tmp/widevine.zip LICENSE.txt > "${CHROMIUM_DIR}/WidevineCdm/LICENSE"; \
unzip -p /tmp/widevine.zip manifest.json > "${CHROMIUM_DIR}/WidevineCdm/manifest.json"; \
unzip -p /tmp/widevine.zip libwidevinecdm.so > "${CHROMIUM_DIR}/WidevineCdm/_platform_specific/linux_${WIDEVINE_ARCH}/libwidevinecdm.so"; \
find "${CHROMIUM_DIR}/WidevineCdm" -type d -exec chmod 0755 '{}' \;; \
find "${CHROMIUM_DIR}/WidevineCdm" -type f -exec chmod 0644 '{}' \;; \
rm /tmp/widevine.zip; \
apt-get --purge autoremove -y unzip; \
else \
echo "Widevine is not supported on ${ARCH}"; \
fi; \
# #
# clean up # clean up
apt-get --purge autoremove -y unzip; \
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/*

View file

@ -1,19 +0,0 @@
ARG BASE_IMAGE=m1k1o/neko:arm-base
FROM $BASE_IMAGE
#
# install neko chromium
RUN set -eux; apt-get update; \
# TODO: Bring back DRM support.
apt-get install -y --no-install-recommends chromium openbox; \
#
# clean up
apt-get clean -y; \
rm -rf /var/lib/apt/lists/* /var/cache/apt/*
#
# copy configuation files
COPY supervisord.conf /etc/neko/supervisord/chromium.conf
COPY --chown=neko preferences.json /home/neko/.config/chromium/Default/Preferences
COPY policies.json /etc/chromium/policies/managed/policies.json
COPY openbox.xml /etc/neko/openbox.xml

View file

@ -43,6 +43,7 @@ RUN set -eux; apt-get update; \
EXT_VERSION="$(unzip -p "${EXT_PATH}" manifest.json 2>/dev/null | jq -r ".version")"; \ EXT_VERSION="$(unzip -p "${EXT_PATH}" manifest.json 2>/dev/null | jq -r ".version")"; \
echo -e "{\n \"external_crx\": \"${EXT_PATH}\",\n \"external_version\": \"${EXT_VERSION}\"\n}" > "${EXTENSIONS_DIR}"/"${EXT_ID}".json; \ echo -e "{\n \"external_crx\": \"${EXT_PATH}\",\n \"external_version\": \"${EXT_VERSION}\"\n}" > "${EXTENSIONS_DIR}"/"${EXT_ID}".json; \
done; \ done; \
#
# clean up # clean up
apt-get --purge autoremove -y xz-utils jq; \ apt-get --purge autoremove -y xz-utils jq; \
apt-get clean -y; \ apt-get clean -y; \