summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorgigagamerchaddhruv-spec <gigagamerchaddhruv@gmail.com>2026-02-28 12:56:04 +0530
committerGitHub <noreply@github.com>2026-02-28 12:56:04 +0530
commit8f0235d82e7be24e3ee9a8db134473bdab49bdcb (patch)
tree2debf3c87de76262c6e7cd410cc0ce052ad7bcde
parent43f4b47b7b63f0a14978b14b045ae27b1adf6cb5 (diff)
Update build.shHEADmain
-rw-r--r--build.sh55
1 files 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 <<EOF
-# --- A. Repositories & App Installation ---
-add-apt-repository ppa:agornostal/ulauncher -y
+# --- A. Modern Repositories & App Installation ---
+# Arc Browser for Ubuntu 24.04 Base
curl -s https://packages.arc-browser.org | gpg --dearmor -o /usr/share/keyrings/arc-archive-keyring.gpg
echo "deb [signed-by=/usr/share/keyrings/arc-archive-keyring.gpg] https://packages.arc-browser.org stable main" | tee /etc/apt/sources.list.d/arc.list
+# Ulauncher for Noble
+add-apt-repository ppa:agornostal/ulauncher -y
+
apt-get update
apt-get install -y ulauncher plank sddm plymouth-themes gnome-sushi \
wget curl git fonts-inter-variable conky-all neofetch \
zenity cheese arc-browser xnotes
-# --- B. Deep Rebranding ---
+# --- B. Deep Rebranding (Mint 22.3 -> 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/