From 2e5bfd458c39fee228d7662aa474b587cfa20aef Mon Sep 17 00:00:00 2001 From: Bruno Lopes Date: Sat, 14 Feb 2026 12:58:13 -0300 Subject: [PATCH] build/linux: Remove dangling .snap file on CI just in case After the unsquashfs, the .snap file is simply not needed anymore. The less the space we use, the better. --- build/linux/snap/1_build-deps-snapcraft.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/build/linux/snap/1_build-deps-snapcraft.sh b/build/linux/snap/1_build-deps-snapcraft.sh index 5ce10cece5..54c0e57e66 100644 --- a/build/linux/snap/1_build-deps-snapcraft.sh +++ b/build/linux/snap/1_build-deps-snapcraft.sh @@ -41,6 +41,7 @@ if [ -z "$GITLAB_CI" ] || [ "$1" = '--install-snaps' ]; then curl --progress-bar -L -o ${snap}.snap $(curl --progress-bar -H 'Snap-Device-Series: 16' https://api.snapcraft.io/v2/snaps/info/$snap | jq -r --arg arch "$(dpkg --print-architecture)" '.["channel-map"][] | select(.channel.architecture == $arch and .channel.track == "latest" and .channel.risk == "stable") | .download.url') mkdir -p /snap/$snap/current unsquashfs -d /snap/$snap/current ${snap}.snap + rm -f ${snap}.snap fi done if [ "$1" = '--install-snaps' ]; then exit 0; fi