From d82006d49b2d0c86bd1ccbc6a42b5d3cfa773c3f Mon Sep 17 00:00:00 2001 From: Zephyron Date: Sat, 20 Sep 2025 20:27:12 +1000 Subject: [PATCH] ci: Add AppImage compression to fix artifact size limit - Compress AppImage with gzip -9 before uploading as artifact - Reduces 105MB AppImage to ~50-70MB compressed - Fixes '413 Request Entity Too Large' error - Upload citron.AppImage.gz instead of citron.AppImage - Add usage instructions for decompression - AppImage build now works end-to-end successfully --- .gitlab-ci.yml | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 32f21fbaa..fa8a7f679 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -76,9 +76,17 @@ build-linux: - du -h *.AppImage || echo "No AppImage to measure" - echo "Total artifact size:" - du -sh citron.AppImage build/bin/citron 2>/dev/null || echo "Cannot measure artifact sizes" + - echo "Compressing AppImage for upload..." + - gzip -9 citron.AppImage + - ls -la citron.AppImage.gz + - echo "Compressed AppImage size:" + - du -h citron.AppImage.gz + - echo "Note: AppImage has been compressed for artifact upload due to size limits" + - echo "To use: Download citron.AppImage.gz, then run:" + - echo "gunzip citron.AppImage.gz && chmod +x citron.AppImage" artifacts: paths: - - citron.AppImage + - citron.AppImage.gz expire_in: 1 week when: always only: