From 08b3f90f4ebfebf8c2e3a01f11f8042f43afb408 Mon Sep 17 00:00:00 2001 From: gigagamerchaddhruv-spec Date: Sat, 28 Feb 2026 12:46:08 +0530 Subject: Update build.sh --- build.sh | 54 +++++++++++++++++++++++++++++++++++++----------------- 1 file changed, 37 insertions(+), 17 deletions(-) diff --git a/build.sh b/build.sh index 17cff33..da079f6 100644 --- a/build.sh +++ b/build.sh @@ -1,13 +1,13 @@ #!/bin/bash # ================================================================= -# LacOS Build Script - FIXED DOWNLOAD LINK +# LacOS Build Script - THE ULTIMATE macOS SEQUOIA EDITION # ================================================================= -# 1. Install Build Tools +# 1. Install Build & Remastering Tools sudo apt-get update -sudo apt-get install -y squashfs-tools genisoimage wget git unzip dbus-x11 +sudo apt-get install -y squashfs-tools genisoimage wget git unzip dbus-x11 curl -# 2. Download Official Linux Mint 21.3 ISO (NEW STABLE LINK) +# 2. Download Official Linux Mint 21.3 ISO (STABLE MIRROR) wget --user-agent="Mozilla/5.0" -O mint.iso https://mirrors.kernel.org # 3. Extract ISO and SquashFS @@ -17,25 +17,27 @@ cp -a mnt/* source/ sudo umount mnt sudo unsquashfs -d squashfs-root source/casper/filesystem.squashfs -# 4. CUSTOMIZE: Entering the LacOS Transformation Chamber (Chroot) +# 4. CUSTOMIZE: The LacOS Transformation (Chroot) sudo chroot squashfs-root /bin/bash < /etc/issue @@ -44,6 +46,10 @@ 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 +# 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 # --- C. Wallpaper & Themes --- mkdir -p /usr/share/backgrounds/lacos @@ -63,18 +69,29 @@ 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. 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) --- 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/icons/Hatter/apps/scalable/apple.svg' +menu-icon='/usr/share/lacos/branding/apple-menu.svg' menu-label='' [org/cinnamon/desktop/keybindings] menu-key-1=[''] @@ -99,6 +116,9 @@ DCONF apt-get clean EOF -# 5. Package the Final ISO -sudo mksquashfs squashfs-root source/casper/filesystem.squashfs -noappend -always-use-fragments -sudo genisoimage -D -r -V "LacOS-Final" -cache-inodes -J -l -b isolinux/isolinux.bin -c isolinux/boot.cat -no-emul-boot -boot-load-size 4 -boot-info-table -o LacOS-Sequoia.iso source/ +# 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 \ + -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/ -- cgit v1.2.3