Skip to content

Commit efb2ccd

Browse files
Update build.sh
1 parent 067920d commit efb2ccd

1 file changed

Lines changed: 7 additions & 54 deletions

File tree

build.sh

Lines changed: 7 additions & 54 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@ pacman -S --noconfirm --needed \
2626
\
2727
greetd greetd-regreet cage gtk4 \
2828
\
29-
imagemagick \
3029
openssl
3130

3231
# ── Setup ─────────────────────────────────────────────────────────────────
@@ -43,34 +42,9 @@ cp -r /usr/share/archiso/configs/releng/ "${PROFILE}"
4342
mkdir -p "${AIROOTFS}"
4443
mkdir -p "${SRCDIR}"
4544

46-
# ── Wallpaper: fetch + upscale to 4K ──────────────────────────────────────
47-
# Source is a 1920×1080 copyright-free purple aesthetic image.
48-
# We upscale to 3840×2160 with Lanczos so it looks sharp on HiDPI displays,
49-
# then embed it at /usr/share/wallpapers/kibaos/wallpaper.jpg in the airootfs.
50-
WALLPAPER_URL="https://wallpapers.com/images/hd/non-copyrighted-purple-aesthetic-view-6ad1lsfony65z6q5.jpg"
51-
WALLPAPER_SRC="${WORKDIR}/wallpaper_src.jpg"
52-
WALLPAPER_4K="${WORKDIR}/wallpaper_4k.jpg"
53-
54-
echo "=== Fetching wallpaper ==="
55-
curl -fL --retry 3 --retry-delay 2 -o "${WALLPAPER_SRC}" "${WALLPAPER_URL}"
56-
57-
echo "=== Upscaling wallpaper to 3840×2160 (Lanczos) ==="
58-
magick "${WALLPAPER_SRC}" \
59-
-filter Lanczos \
60-
-resize 3840x2160\! \
61-
-unsharp 0x0.75+0.75+0.008 \
62-
-quality 92 \
63-
"${WALLPAPER_4K}"
64-
65-
# Stage into airootfs — both paths covered:
66-
# /usr/share/wallpapers/kibaos/wallpaper.jpg (regreet + deepin dconf key)
67-
# /usr/share/wallpapers/deepin/desktop.jpg (deepin fallback default)
68-
mkdir -p "${AIROOTFS}/usr/share/wallpapers/kibaos"
69-
mkdir -p "${AIROOTFS}/usr/share/wallpapers/deepin"
70-
cp "${WALLPAPER_4K}" "${AIROOTFS}/usr/share/wallpapers/kibaos/wallpaper.jpg"
71-
cp "${WALLPAPER_4K}" "${AIROOTFS}/usr/share/wallpapers/deepin/desktop.jpg"
72-
73-
echo "=== Wallpaper staged ==="
45+
46+
47+
7448

7549
# ── profiledef.sh ──────────────────────────────────────────────────────────
7650
cat > "${PROFILE}/profiledef.sh" << 'PROFILEDEF'
@@ -208,12 +182,7 @@ command = "env GTK_USE_PORTAL=0 GDK_DEBUG=no-portals cage -s -mlast -- regreet"
208182
user = "greeter"
209183
GREETDCONF
210184

211-
# wallpaper path now points to our embedded KibaOS wallpaper
212185
cat > "${AIROOTFS}/etc/greetd/regreet.toml" << 'REGREETCONF'
213-
[background]
214-
path = "/usr/share/wallpapers/kibaos/wallpaper.jpg"
215-
fit = "Cover"
216-
217186
[GTK]
218187
application_prefer_dark_theme = true
219188
@@ -391,7 +360,8 @@ ln -sf /usr/lib/systemd/system/pacman-init.service \
391360

392361
# ── customize_airootfs.sh ─────────────────────────────────────────────────
393362
mkdir -p "${AIROOTFS}/root"
394-
cat > "${AIROOTFS}/root/customize_airootfs.sh" << 'CUSTOMIZE'
363+
# customize_airootfs.sh is built in two heredoc passes so we can inject the
364+
cat > "${AIROOTFS}/root/customize_airootfs.sh" << 'CUSTOMIZE_PART1'
395365
#!/usr/bin/env bash
396366
set -e
397367
@@ -448,7 +418,6 @@ chmod +x /home/liveuser/.xsession
448418
chown -R 1000:1000 /home/liveuser
449419
chmod 750 /home/liveuser
450420
451-
# ── dconf system-db: dark mode + wallpaper defaults ───────────────────────
452421
mkdir -p /etc/dconf/profile
453422
cat > /etc/dconf/profile/user << 'DCONFPROFILE'
454423
user-db:user
@@ -470,10 +439,6 @@ text-scaling-factor=1.0
470439
high-contrast=false
471440
472441
[com/deepin/dde/appearance]
473-
wallpaper='/usr/share/wallpapers/kibaos/wallpaper.jpg'
474-
475-
[com/deepin/dde/filemanager/wallpaper]
476-
wallpaper-uri='file:///usr/share/wallpapers/kibaos/wallpaper.jpg'
477442
DCONFKEYS
478443
dconf update
479444
@@ -495,23 +460,10 @@ tooltip=Accessibility
495460
command=kiba-access
496461
SBCONF
497462
498-
# ── Deepin wallpaper config file (DDE native, pre-seeds the gsetting key) ─
499-
# DDE reads ~/.config/deepin/deepin-wallpaper.ini as a per-user override
500-
# before the dconf key takes effect. Belt-and-suspenders for live session.
501-
mkdir -p /home/liveuser/.config/deepin
502-
cat > /home/liveuser/.config/deepin/deepin-wallpaper.ini << 'WALLINI'
503-
[Wallpaper]
504-
Wallpaper=/usr/share/wallpapers/kibaos/wallpaper.jpg
505-
WALLINI
506463
507464
# Also write the org.deepin.dde.appearance gsettings XML override so the
508465
# setting survives even if dconf-deepin integration isn't active at first boot.
509-
mkdir -p /usr/share/glib-2.0/schemas
510-
cat > /usr/share/glib-2.0/schemas/99-kibaos-wallpaper.gschema.override << 'GSCHEMA'
511-
[com.deepin.dde.appearance]
512-
wallpaper='/usr/share/wallpapers/kibaos/wallpaper.jpg'
513-
GSCHEMA
514-
glib-compile-schemas /usr/share/glib-2.0/schemas/ 2>/dev/null || true
466+
515467
516468
# ── kiba-apply user service: enable for liveuser ──────────────────────────
517469
mkdir -p /home/liveuser/.config/systemd/user/graphical-session.target.wants
@@ -601,6 +553,7 @@ chmod +x "${AIROOTFS}/root/customize_airootfs.sh"
601553
602554
# ── Build the ISO ──────────────────────────────────────────────────────────
603555
cd "${WORKDIR}"
556+
rm -rf "${WORKDIR}/work"
604557
mkarchiso -v -w work -o out "${PROFILE}/"
605558
606559
if ls out/*.iso 1>/dev/null 2>&1; then

0 commit comments

Comments
 (0)