Skip to content

Commit 13b269e

Browse files
authored
fix: Correct repository URL in os-release branding
1 parent c3ccccb commit 13b269e

File tree

1 file changed

+57
-4
lines changed

1 file changed

+57
-4
lines changed

04-customize-desktop.sh

Lines changed: 57 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#!/bin/bash
22

33
# ==============================================================================
4-
# LuminOS Build Script, Phase 4: Desktop Customization & Branding
4+
# LuminOS Build Script - Phase 4: Desktop Customization & Branding
55
#
66
# Author: Gabriel, Project Leader @ LuminOS
77
# Version: 0.2.2
@@ -20,9 +20,61 @@ echo "PHASE 4: Customizing Desktop and Branding"
2020
echo "====================================================="
2121

2222
echo "--> Copying graphical assets into the system..."
23-
# ... (le contenu reste identique)
23+
mkdir -p "$LUMINOS_CHROOT_DIR/usr/share/wallpapers/luminos/"
24+
cp "assets/luminos-wallpaper-default.png" "$LUMINOS_CHROOT_DIR/usr/share/wallpapers/luminos/"
25+
cp "assets/luminos-sddm-background.png" "$LUMINOS_CHROOT_DIR/usr/share/wallpapers/luminos/"
2426

25-
cat > "$LUMINOS_CHROOT_DIR/tmp/customize_desktop.sh" # ... (le contenu reste identique)
27+
cat > "$LUMINOS_CHROOT_DIR/tmp/customize_desktop.sh" << "EOF"
28+
#!/bin/bash
29+
set -e
30+
export DEBIAN_FRONTEND=noninteractive
31+
echo "--> Removing unwanted packages..."
32+
PACKAGES_TO_REMOVE="kmahjongg kmines kpat ksnake kmail kontact akregator"
33+
apt-get purge -y $PACKAGES_TO_REMOVE
34+
apt-get autoremove -y
35+
echo "--> Applying system-wide dark theme (Breeze Dark)..."
36+
mkdir -p /etc/skel/.config
37+
cat > /etc/skel/.config/kdeglobals << "KDEGLOBALS"
38+
[General]
39+
ColorScheme=BreezeDark
40+
Name=BreezeDark
41+
[Icons]
42+
Theme=breeze-dark
43+
KDEGLOBALS
44+
echo "--> Setting default desktop wallpaper..."
45+
cat > /etc/skel/.config/plasma-org.kde.plasma.desktop-appletsrc << "WALLPAPER_CONF"
46+
[Containments][1]
47+
activityId=
48+
formfactor=0
49+
immutability=1
50+
lastScreen=0
51+
location=0
52+
plugin=org.kde.plasma.folder
53+
wallpaperplugin=org.kde.image
54+
[Containments][1][Wallpaper][org.kde.image][General]
55+
Image=file:///usr/share/wallpapers/luminos/luminos-wallpaper-default.png
56+
WALLPAPER_CONF
57+
echo "--> Setting SDDM login screen background..."
58+
mkdir -p /etc/sddm.conf.d/
59+
cat > /etc/sddm.conf.d/luminos-theme.conf << "SDDM_CONF"
60+
[Theme]
61+
Current=breeze
62+
Background=/usr/share/wallpapers/luminos/luminos-sddm-background.png
63+
SDDM_CONF
64+
echo "--> Branding the system as LuminOS..."
65+
cat > /etc/os-release << "OSRELEASE"
66+
PRETTY_NAME="LuminOS"
67+
NAME="LuminOS"
68+
VERSION_ID="0.2"
69+
VERSION="0.2 (Rebirth)"
70+
ID=luminos
71+
HOME_URL="https://github.com/4LuminOS/build-scripts"
72+
OSRELEASE
73+
echo "LuminOS 0.2 \n \l" > /etc/issue
74+
echo "--> Cleaning up..."
75+
apt-get clean
76+
rm /tmp/customize_desktop.sh
77+
EOF
2678

2779
chmod +x "$LUMINOS_CHROOT_DIR/tmp/customize_desktop.sh"
2880

@@ -35,6 +87,7 @@ chroot "$LUMINOS_CHROOT_DIR" env -i PATH=/usr/local/sbin:/usr/local/bin:/usr/sbi
3587
echo "--> Unmounting virtual filesystems..."
3688
umount "$LUMINOS_CHROOT_DIR/sys"; umount "$LUMINOS_CHROOT_DIR/proc"; umount "$LUMINOS_CHROOT_DIR/dev/pts"; umount "$LUMINOS_CHROOT_DIR/dev"
3789

38-
echo -e "\nSUCCESS: Desktop environment customized."
90+
echo ""
91+
echo "SUCCESS: Desktop environment customized."
3992
echo "Next step: 05-install-ai.sh"
4093
exit 0

0 commit comments

Comments
 (0)