Skip to content

Commit 4e52a11

Browse files
authored
Merge pull request #4 from renner0e/wallpapers
feat: add aurora wallpapers
2 parents 8f43993 + 13cf2f0 commit 4e52a11

1 file changed

Lines changed: 47 additions & 0 deletions

File tree

Containerfile

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,51 @@
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+
145
FROM scratch AS ctx
46+
47+
COPY --from=builder /output/ /wallpapers
48+
249
COPY /brew /brew
350
COPY /flatpaks /flatpaks
451
COPY /just /just

0 commit comments

Comments
 (0)