fix(build): optimize squashfs compression with xz and prune bloated packages for sub-2GB release
This commit is contained in:
1 parent
67b2b7be30
commit
a5fb19750a
2 files changed
+24
-7
No files matched your search
@@ -36,16 +36,19 @@ jobs:
|
|||||||
# 1. Copy official verified releng profile (includes all verified syslinux, efiboot, systemd-boot structures)
|
# 1. Copy official verified releng profile (includes all verified syslinux, efiboot, systemd-boot structures)
|
||||||
cp -r /usr/share/archiso/configs/releng/* build_profile/
|
cp -r /usr/share/archiso/configs/releng/* build_profile/
|
||||||
|
|
||||||
# 2. Append KDE Plasma 6 desktop & AMD hardware packages
|
# 2. Prune bloated rescue / VM guest agent packages from releng (Nitro V 15 is a physical gaming laptop)
|
||||||
|
sed -i -E '/^(cloud-init|open-vm-tools|virtualbox-guest-utils-nox|hyperv|qemu-guest-agent|clonezilla|partclone|partimage|testdisk|espeakup|brltty|man-pages|man-db|irssi|lynx|darkhttpd|ddrescue|refind|livecd-sounds|grml-zsh-config)$/d' build_profile/packages.x86_64
|
||||||
|
|
||||||
|
# 3. Append KDE Plasma 6 desktop & AMD hardware packages
|
||||||
cat profile/packages.x86_64 >> build_profile/packages.x86_64
|
cat profile/packages.x86_64 >> build_profile/packages.x86_64
|
||||||
|
|
||||||
# 3. Overlay our Airlys OS S1 branding, wallpapers, autologin and configs
|
# 4. Overlay our Airlys OS S1 branding, wallpapers, autologin and configs
|
||||||
cp -r profile/airootfs/* build_profile/airootfs/
|
cp -r profile/airootfs/* build_profile/airootfs/
|
||||||
|
|
||||||
# 4. Apply Airlys OS S1 profiledef
|
# 5. Apply Airlys OS S1 profiledef (xz -Xbcj x86 compression)
|
||||||
cp -f profile/profiledef.sh build_profile/profiledef.sh
|
cp -f profile/profiledef.sh build_profile/profiledef.sh
|
||||||
|
|
||||||
# 5. Build full production live bootable ISO
|
# 6. Build full production live bootable ISO
|
||||||
mkarchiso -v -w /mnt/work -o out build_profile/
|
mkarchiso -v -w /mnt/work -o out build_profile/
|
||||||
ls -lh out/
|
ls -lh out/
|
||||||
cp -v out/*.iso bin/airlys.iso
|
cp -v out/*.iso bin/airlys.iso
|
||||||
@@ -64,8 +67,22 @@ jobs:
|
|||||||
env:
|
env:
|
||||||
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
run: |
|
run: |
|
||||||
|
ISO_SIZE=$(stat -c%s bin/airlys.iso)
|
||||||
|
echo "ISO size is $ISO_SIZE bytes"
|
||||||
|
|
||||||
|
if [ "$ISO_SIZE" -lt 2100000000 ]; then
|
||||||
|
echo "ISO is under 2GB limit, uploading direct ISO..."
|
||||||
gh release create v1.0.0-s1 bin/airlys.iso bin/sha256sum.txt \
|
gh release create v1.0.0-s1 bin/airlys.iso bin/sha256sum.txt \
|
||||||
--title "Airlys OS S1 - Official Production Release" \
|
--title "Airlys OS S1 - Official Production Release" \
|
||||||
--notes "Airlys OS S1 (KDE Plasma 6 Desktop + Linux Zen 6.x) engineered by Er. Adam Eehan (Aira Group of Technology) & Aira 3 Ultra." \
|
--notes "Airlys OS S1 (KDE Plasma 6 Desktop + Linux Zen 6.x) engineered by Er. Adam Eehan (Aira Group of Technology) & Aira 3 Ultra." \
|
||||||
--repo ${{ github.repository }} || \
|
--repo ${{ github.repository }}
|
||||||
gh release upload v1.0.0-s1 bin/airlys.iso bin/sha256sum.txt --clobber --repo ${{ github.repository }}
|
else
|
||||||
|
echo "ISO exceeds 2GB limit ($ISO_SIZE bytes), splitting into parts for GitHub Releases..."
|
||||||
|
cd bin
|
||||||
|
split -b 1500M airlys.iso airlys.iso.part-
|
||||||
|
cd ..
|
||||||
|
gh release create v1.0.0-s1 bin/airlys.iso.part-* bin/sha256sum.txt \
|
||||||
|
--title "Airlys OS S1 - Official Production Release" \
|
||||||
|
--notes "Airlys OS S1 (KDE Plasma 6 Desktop + Linux Zen 6.x) engineered by Er. Adam Eehan (Aira Group of Technology) & Aira 3 Ultra." \
|
||||||
|
--repo ${{ github.repository }}
|
||||||
|
fi
|
||||||
@@ -14,7 +14,7 @@ bootmodes=('bios.syslinux' 'uefi.systemd-boot')
|
|||||||
arch="x86_64"
|
arch="x86_64"
|
||||||
pacman_conf="pacman.conf"
|
pacman_conf="pacman.conf"
|
||||||
airootfs_image_type="squashfs"
|
airootfs_image_type="squashfs"
|
||||||
airootfs_image_tool_options=('-comp' 'zstd' '-Xcompression-level' '15' '-b' '1M')
|
airootfs_image_tool_options=('-comp' 'xz' '-Xbcj' 'x86' '-b' '1M')
|
||||||
file_permissions=(
|
file_permissions=(
|
||||||
["/etc/shadow"]="0:0:400"
|
["/etc/shadow"]="0:0:400"
|
||||||
["/etc/sudoers.d/airlys"]="0:0:440"
|
["/etc/sudoers.d/airlys"]="0:0:440"
|
||||||
|
|||||||
Reference in new issue
Block a user