From 343f14a89bf1de6a4ea4891909be89f13bb0cdb0 Mon Sep 17 00:00:00 2001 From: gigagamerchaddhruv-spec Date: Sat, 28 Feb 2026 12:50:33 +0530 Subject: Update build.sh --- build.sh | 49 ++++++++++++++++++------------------------------- 1 file changed, 18 insertions(+), 31 deletions(-) diff --git a/build.sh b/build.sh index da079f6..158f73e 100644 --- a/build.sh +++ b/build.sh @@ -1,13 +1,13 @@ #!/bin/bash # ================================================================= -# LacOS Build Script - THE ULTIMATE macOS SEQUOIA EDITION +# LacOS Build Script - MODERN GRUB/XORRISO EDITION # ================================================================= # 1. Install Build & Remastering Tools sudo apt-get update -sudo apt-get install -y squashfs-tools genisoimage wget git unzip dbus-x11 curl +sudo apt-get install -y squashfs-tools xorriso wget git unzip dbus-x11 curl isolinux -# 2. Download Official Linux Mint 21.3 ISO (STABLE MIRROR) +# 2. Download Official Linux Mint 21.3 ISO wget --user-agent="Mozilla/5.0" -O mint.iso https://mirrors.kernel.org # 3. Extract ISO and SquashFS @@ -17,11 +17,10 @@ cp -a mnt/* source/ sudo umount mnt sudo unsquashfs -d squashfs-root source/casper/filesystem.squashfs -# 4. CUSTOMIZE: The LacOS Transformation (Chroot) +# 4. CUSTOMIZE: The LacOS Transformation sudo chroot squashfs-root /bin/bash < /etc/issue -# Rename Software Manager to App Store if [ -f "/usr/share/applications/mintinstall.desktop" ]; then sed -i 's/Name=Software Manager/Name=App Store/g' /usr/share/applications/mintinstall.desktop fi -# Rename Installer 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 @@ -69,29 +62,18 @@ 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. Apple Menu & About This Mac --- -mkdir -p /usr/share/lacos/branding -cp /usr/share/icons/Hatter/apps/scalable/apple.svg /usr/share/lacos/branding/apple-menu.svg - -cat < /usr/local/bin/about-lacos -#!/bin/bash -zenity --info --title="About This Mac" --width=250 --text="LacOS Sequoia\nVersion 1.0\n\nDesign by LacOS Team" --icon-name="apple" -ABOUT -chmod +x /usr/local/bin/about-lacos - -# --- E. Autostart Setup (Plank, Ulauncher, Conky) --- +# --- D. Autostart & System Layout (DCONF) --- mkdir -p /etc/skel/.config/autostart +mkdir -p /etc/skel/.config/dconf cp /usr/share/applications/ulauncher.desktop /etc/skel/.config/autostart/ cp /usr/share/applications/plank.desktop /etc/skel/.config/autostart/ -# --- F. System Layout & Keybindings (DCONF) --- -mkdir -p /etc/skel/.config/dconf cat < /etc/skel/.config/dconf/user-settings [org/cinnamon] enabled-applets=['panel1:left:0:menu@cinnamon.org', 'panel1:left:1:globalAppMenu@lestcape', 'panel1:right:0:systray@cinnamon.org', 'panel1:right:1:calendar@cinnamon.org'] panels-enabled=['panel1:0:top'] [org/cinnamon/applets/menu@cinnamon.org] -menu-icon='/usr/share/lacos/branding/apple-menu.svg' +menu-icon='/usr/share/icons/Hatter/apps/scalable/apple.svg' menu-label='' [org/cinnamon/desktop/keybindings] menu-key-1=[''] @@ -116,9 +98,14 @@ DCONF apt-get clean EOF -# 5. Package the Final ISO (Modern BIOS + UEFI Paths) -sudo genisoimage -D -r -V "LacOS-Final" -cache-inodes -J -l \ - -b boot/isolinux/isolinux.bin -c boot/isolinux/boot.cat \ +# 5. Package the Final ISO with XORRISO (Modern GRUB/EFI Support) +xorriso -as mkisofs \ + -iso-level 3 -full-iso9660-filenames \ + -volid "LacOS-Sequoia" \ + -eltorito-boot boot/grub/porterefi.bin \ -no-emul-boot -boot-load-size 4 -boot-info-table \ - -eltorito-alt-boot -e boot/grub/efi.img -no-emul-boot \ - -o LacOS-Sequoia.iso source/ + -eltorito-alt-boot \ + -e boot/grub/efi.img \ + -no-emul-boot \ + -isohybrid-gpt-basdat \ + -output LacOS-Sequoia.iso source/ -- cgit v1.2.3