Skip to content

Commit 20321ba

Browse files
authored
Use iculess libxml2 and qt6-base (#4)
Shrinks the AppImage by 12 MiB
1 parent 2d28402 commit 20321ba

File tree

2 files changed

+13
-3
lines changed

2 files changed

+13
-3
lines changed

.github/workflows/blank.yml

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,6 @@ jobs:
4242
nasm \
4343
qt6-tools \
4444
qt6-base \
45-
qt6-webengine \
4645
qt6-multimedia \
4746
qt6-wayland \
4847
mbedtls2 \
@@ -89,9 +88,19 @@ jobs:
8988
9089
- name: Install debloated llvm-libs
9190
run: |
92-
LLVM="https://github.com/pkgforge-dev/llvm-libs-debloated/releases/download/continuous/llvm-libs-nano-x86_64.pkg.tar.zst"
93-
wget "$LLVM" -O ./llvm-libs.pkg.tar.zst
91+
LLVM_URL="https://github.com/pkgforge-dev/llvm-libs-debloated/releases/download/continuous/llvm-libs-nano-x86_64.pkg.tar.zst"
92+
wget "$LLVM_URL" -O ./llvm-libs.pkg.tar.zst
9493
pacman -U --noconfirm ./llvm-libs.pkg.tar.zst
94+
rm -f ./llvm-libs.pkg.tar.zst
95+
96+
- name: Install iculess libxml2 and qt6-core
97+
run: |
98+
QT6_URL="https://github.com/pkgforge-dev/llvm-libs-debloated/releases/download/continuous/qt6-base-iculess-x86_64.pkg.tar.zst"
99+
LIBXML_URL="https://github.com/pkgforge-dev/llvm-libs-debloated/releases/download/continuous/libxml2-iculess-x86_64.pkg.tar.zst"
100+
wget "$QT6_URL" -O ./qt6-base-iculess.pkg.tar.zst
101+
wget "$LIBXML_URL" -O ./libxml2-iculess.pkg.tar.zst
102+
pacman -U --noconfirm ./qt6-base-iculess.pkg.tar.zst ./libxml2-iculess.pkg.tar.zst
103+
rm -f ./qt6-base-iculess.pkg.tar.zst ./libxml2-iculess.pkg.tar.zst
95104
96105
- name: Compile Citron
97106
run: |

citron-appimage.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ fi
3131

3232
# This library is massive and makes the AppImage +220 Mib
3333
# Seems to have very few uses so we will build without it
34+
sed -i "s/'qt6-webengine'//" ./PKGBUILD
3435
sed -i 's/-DCITRON_USE_QT_WEB_ENGINE=ON/-DCITRON_USE_QT_WEB_ENGINE=OFF/' ./PKGBUILD
3536

3637
if ! grep -q -- '-O3' ./PKGBUILD; then

0 commit comments

Comments
 (0)