mirror-get-aurora-dev-common/Containerfile
renner 60f0cef0d4 feat: feature partity with rpm
this symlink sets up the logic so the users who previously opted into
the now removed ai wallpaper get the proper replacement for it
2025-11-26 22:07:51 +01:00

32 lines
No EOL
1.4 KiB
Docker

FROM docker.io/library/alpine:latest@sha256:4b7ce07002c69e8f3d704a9c5d6fd3053be500b7f1c69fc0d80990c2ad8dd412 AS builder
RUN apk add --no-cache curl jq zstd tar coreutils
ENV URL="https://api.github.com/repos/ublue-os/artwork/releases"
RUN set -xeuo pipefail && \
TARBALL=$(curl -s ${URL} | jq -r 'first(.[] | .assets[]? | select(.name == "aurora-wallpapers.tar.zstd") .browser_download_url)') && \
curl -L "$TARBALL" -o /tmp/aurora-wallpapers.tar.zstd && \
mkdir -p /output/ /tmp/aurora-wallpapers && \
tar -xvf /tmp/aurora-wallpapers.tar.zstd -C /tmp/aurora-wallpapers && \
cd /tmp/aurora-wallpapers && \
rm -rf kde/*/gnome-background-properties/ && \
mkdir -p /output/usr/share/wallpapers /output/usr/share/backgrounds && \
mv kde/ /output/usr/share/backgrounds/aurora/ && \
cd /output/usr/share/backgrounds && \
for dir in aurora/*; do \
ln -sr "/output/usr/share/backgrounds/${dir}" /output/usr/share/wallpapers/; \
done && \
ln -sr /output/usr/share/backgrounds/aurora/aurowa-wallpaper-6/ /output/usr/share/backgrounds/aurora/aurora-wallpaper-1 && \
ln -sr /output/usr/share/backgrounds/aurora/aurora-wallpaper-1/ /output/usr/share/wallpapers/ && \
rm -rf /tmp/aurora-wallpapers.tar.zstd /tmp/aurora-wallpapers
FROM scratch AS ctx
COPY --from=builder /output/ /wallpapers
COPY /brew /brew
COPY /flatpaks /flatpaks
COPY /just /just
COPY /logos /logos
COPY /system_files /system_files