From 8f0235d82e7be24e3ee9a8db134473bdab49bdcb Mon Sep 17 00:00:00 2001 From: gigagamerchaddhruv-spec Date: Sat, 28 Feb 2026 12:56:04 +0530 Subject: Update build.sh --- build.sh | 55 +++++++++++++++++++++++++++++-------------------------- 1 file changed, 29 insertions(+), 26 deletions(-) diff --git a/build.sh b/build.sh index 5bc9dfa..c7fa2d4 100644 --- a/build.sh +++ b/build.sh @@ -1,35 +1,37 @@ #!/bin/bash # ================================================================= -# LacOS Build Script - RELIABLE EXTRACTION EDITION +# LacOS Build Script - MINT 22.3 "ZENA" BASE (SEQUOIA EDITION) # ================================================================= -# 1. Install Build Tools +# 1. Install Modern Build Tools sudo apt-get update -sudo apt-get install -y squashfs-tools xorriso wget git unzip dbus-x11 curl p7zip-full isolinux +sudo apt-get install -y squashfs-tools xorriso wget git unzip dbus-x11 curl p7zip-full -# 2. Download Official Linux Mint 21.3 ISO +# 2. Download Linux Mint 22.3 Cinnamon ISO wget --user-agent="Mozilla/5.0" -O mint.iso https://mirrors.kernel.org -# 3. Extract ISO using 7zip (No mounting needed!) +# 3. Extract ISO using 7zip (Works for Mint 22.x structure) mkdir source 7z x mint.iso -osource/ +SQUASH_PATH=$(find source -name "filesystem.squashfs") +sudo unsquashfs -d squashfs-root "$SQUASH_PATH" -# Extract SquashFS -sudo unsquashfs -d squashfs-root source/casper/filesystem.squashfs - -# 4. CUSTOMIZE: The LacOS Transformation +# 4. CUSTOMIZE: Entering the LacOS Transformation Chamber (Chroot) sudo chroot squashfs-root /bin/bash < LacOS) --- apt-get purge -y firefox* libreoffice* thunderbird hexchat transmission-common sticky notes drawing apt-get autoremove -y @@ -37,14 +39,11 @@ sed -i 's/Linux Mint/LacOS/g' /etc/linuxmint/info sed -i 's/Linux Mint/LacOS/g' /etc/lsb-release echo "LacOS" > /etc/issue -if [ -f "/usr/share/applications/mintinstall.desktop" ]; then - sed -i 's/Name=Software Manager/Name=App Store/g' /usr/share/applications/mintinstall.desktop -fi -if [ -f "/usr/share/applications/ubiquity.desktop" ]; then - sed -i 's/Name=Install Linux Mint/Name=Install LacOS/g' /usr/share/applications/ubiquity.desktop -fi +# Rename Software Manager and Installer for 22.3 +[ -f "/usr/share/applications/mintinstall.desktop" ] && sed -i 's/Name=Software Manager/Name=App Store/g' /usr/share/applications/mintinstall.desktop +[ -f "/usr/share/applications/ubiquity.desktop" ] && sed -i 's/Name=Install Linux Mint/Name=Install LacOS/g' /usr/share/applications/ubiquity.desktop -# --- C. Wallpaper & Themes --- +# --- C. macOS Themes & Layout --- mkdir -p /usr/share/backgrounds/lacos wget -O /usr/share/backgrounds/lacos/macTahoe.jpg https://raw.githubusercontent.com @@ -58,11 +57,12 @@ cd WhiteSur-gtk-theme cp -r /root/.themes/* /usr/share/themes/ cd .. +# Set macTahoe SDDM (Login Screen) git clone https://github.com /usr/share/sddm/themes/macTahoe echo "[Theme]\nCurrent=macTahoe" > /etc/sddm.conf cp /usr/share/backgrounds/lacos/macTahoe.jpg /usr/share/sddm/themes/macTahoe/background.jpg -# --- D. Autostart & System Layout (DCONF) --- +# --- D. Autostart & Dconf Settings --- mkdir -p /etc/skel/.config/autostart mkdir -p /etc/skel/.config/dconf cp /usr/share/applications/ulauncher.desktop /etc/skel/.config/autostart/ @@ -98,15 +98,18 @@ DCONF apt-get clean EOF -# 5. Package the Final ISO with XORRISO (Modern Hybrid Boot) -# Note: Mint 21.3 uses EFI/boot/bootx64.efi for UEFI +# 5. Package the Final ISO with XORRISO (Mint 22.x Modern Boot) +# Re-squash modified system +sudo mksquashfs squashfs-root "$SQUASH_PATH" -noappend -always-use-fragments + +# Use the precise EFI boot image path for Mint 22.3 +EFI_IMG=$(find source -name "bootx64.efi" | head -n 1 | sed 's|source/||') + xorriso -as mkisofs \ -iso-level 3 -full-iso9660-filenames \ -volid "LacOS-Sequoia" \ - -eltorito-boot boot/isolinux/isolinux.bin \ - -no-emul-boot -boot-load-size 4 -boot-info-table \ - -eltorito-alt-boot \ - -e boot/grub/efi.img \ + -e "$EFI_IMG" \ -no-emul-boot \ + -append_partition 2 0xef source/boot/grub/efi.img \ -isohybrid-gpt-basdat \ -output LacOS-Sequoia.iso source/ -- cgit v1.2.3