mirror of
https://github.com/m1k1o/neko.git
synced 2025-08-03 00:39:56 +02:00
fix amd64 & build.
This commit is contained in:
parent
a377f0f9f2
commit
4ab3dccc7f
3 changed files with 10 additions and 15 deletions
|
@ -8,10 +8,10 @@ RUN set -eux; \
|
|||
apt-get update; \
|
||||
apt-get install -y --no-install-recommends chromium chromium-common chromium-sandbox openbox; \
|
||||
#
|
||||
# install widevine module (only for x86_64)
|
||||
# install widevine module (only for amd64)
|
||||
CHROMIUM_DIR="/usr/lib/chromium"; \
|
||||
ARCH=$(dpkg --print-architecture); \
|
||||
if [ "${ARCH}" = "x86_64" ]; then \
|
||||
if [ "${ARCH}" = "amd64" ]; then \
|
||||
# https://commondatastorage.googleapis.com/chromeos-localmirror/distfiles/chromeos-lacros-arm64-squash-zstd-120.0.6098.0
|
||||
apt-get install -y --no-install-recommends unzip; \
|
||||
WIDEVINE_ARCH="x64"; \
|
||||
|
|
|
@ -9,7 +9,7 @@ RUN set -eux; apt-get update; \
|
|||
if [ "${ARCH}" = "armhf" ]; then \
|
||||
#
|
||||
# install firefox-esr for armhf
|
||||
apt-get install -y --no-install-recommends openbox firefox-esr; \
|
||||
apt-get install -y --no-install-recommends firefox-esr; \
|
||||
ln -s /usr/bin/firefox-esr /usr/bin/firefox; \
|
||||
#
|
||||
# install extensions
|
||||
|
@ -18,11 +18,11 @@ RUN set -eux; apt-get update; \
|
|||
wget -O '/usr/lib/firefox-esr/distribution/extensions/sponsorBlocker@ajay.app.xpi' https://addons.mozilla.org/firefox/downloads/latest/sponsorblock/latest.xpi; \
|
||||
else \
|
||||
#
|
||||
# fetch latest release (for x86_64 and arm64)
|
||||
if [ "${ARCH}" = "x86_64" ]; then \
|
||||
# fetch latest release (for amd64 and arm64)
|
||||
if [ "${ARCH}" = "amd64" ]; then \
|
||||
SRC_URL="https://download.mozilla.org/?product=firefox-latest&os=linux64&lang=en-US"; \
|
||||
elif [ "${ARCH}" = "arm64" ]; then \
|
||||
SRC_URL="https://download.mozilla.org/?product=firefox-latest&os=linux-aarch64&lang=en-US"; \
|
||||
SRC_URL="https://download.mozilla.org/?product=firefox-latest&os=linux64-aarch64&lang=en-US"; \
|
||||
fi; \
|
||||
if [ ! -z "${SRC_URL}" ]; then \
|
||||
apt-get install -y --no-install-recommends xz-utils libgtk-3-0 libdbus-glib-1-2; \
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue