File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ FROM docker.io/library/alpine:latest AS builder
2+
3+ RUN apk add curl jq zstd tar
4+
5+ ENV URL="https://api.github.com/repos/ublue-os/artwork/releases"
6+
7+ RUN sh <<'EOF'
8+ # tagged with date of aurora-wallpaper creation
9+ set -xeuo pipefail
10+ TARBALL=$(curl -s ${URL} | jq -r 'first(.[] | .assets[]? | select(.name == "aurora-wallpapers.tar.zstd") .browser_download_url)' )
11+
12+ curl -L $TARBALL -o /tmp/aurora-wallpapers.tar.zstd
13+ EOF
14+
15+ RUN sh <<'EOF'
16+ mkdir -p /output/
17+ mkdir -p /tmp/aurora-wallpapers
18+ tar -xvf /tmp/aurora-wallpapers.tar.zstd -C /tmp/aurora-wallpapers
19+
20+ cd /tmp/aurora-wallpapers
21+ # We don't need gnome metadata
22+ rm -rf kde/*/gnome-background-properties/
23+
24+ mkdir -p /output/usr/share/backgrounds
25+ mkdir -p /output/usr/share/wallpapers
26+ mv /tmp/aurora-wallpapers/kde/ /output/usr/share/backgrounds/aurora/
27+
28+ # make relative symlinks so wallpapers are actually in
29+ # /usr/share/backgrounds/aurora/name1 but accessible also accesible
30+ # in /usr/share/wallpapers/name1
31+ cd /output/usr/share/backgrounds
32+ for dir in ../backgrounds/aurora/*; do
33+ ln -s "${dir}" ../wallpapers/
34+ done
35+
36+ # FIXME
37+ # symlink the deleted AI slop with it's replacement
38+ # cd /output/usr/share
39+ # ln -s backgrounds/aurora/aurora-wallpaper-6 ../backgrounds/aurora/aurora-wallpaper-1
40+ # # same reason as above
41+ # ln -s backgrounds/aurora/aurora-wallpaper-1/ wallpapers/aurora-wallpaper-1
42+
43+ EOF
44+
145FROM scratch AS ctx
46+
47+ COPY --from=builder /output/ /wallpapers
48+
249COPY /brew /brew
350COPY /flatpaks /flatpaks
451COPY /just /just
You can’t perform that action at this time.
0 commit comments