summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorgigagamerchaddhruv-spec <gigagamerchaddhruv@gmail.com>2026-02-28 12:50:33 +0530
committerGitHub <noreply@github.com>2026-02-28 12:50:33 +0530
commit343f14a89bf1de6a4ea4891909be89f13bb0cdb0 (patch)
tree78e0da6b12c355c21454b51db22dbd6eb4a67a2b
parent08b3f90f4ebfebf8c2e3a01f11f8042f43afb408 (diff)
Update build.sh
-rw-r--r--build.sh49
1 files 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 <<EOF
# --- A. Repositories & App Installation ---
add-apt-repository ppa:agornostal/ulauncher -y
-# Add Arc Browser Repo
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
@@ -30,11 +29,7 @@ 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
-# Install WPS Office (Skip if download fails)
-wget https://wdl1.pcloud.com || true
-apt-get install -y ./wps-office_11.1.0.11719.amd64.deb || true
-
-# --- B. Deep Rebranding & Bloatware Removal ---
+# --- B. Deep Rebranding ---
apt-get purge -y firefox* libreoffice* thunderbird hexchat transmission-common sticky notes drawing
apt-get autoremove -y
@@ -42,11 +37,9 @@ sed -i 's/Linux Mint/LacOS/g' /etc/linuxmint/info
sed -i 's/Linux Mint/LacOS/g' /etc/lsb-release
echo "LacOS" > /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 <<ABOUT > /usr/local/bin/about-lacos
-#!/bin/bash
-zenity --info --title="About This Mac" --width=250 --text="<b>LacOS Sequoia</b>\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 <<DCONF > /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/