Skip to content

Commit b00a99a

Browse files
committed
attempt to fix flatpak build
1 parent 5edf7e8 commit b00a99a

1 file changed

Lines changed: 22 additions & 0 deletions

File tree

.github/workflows/bundle-desktop-linux.yml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -148,6 +148,19 @@ jobs:
148148
chmod +x ui/desktop/src/bin/goosed
149149
ls -la ui/desktop/src/bin/
150150
151+
- name: Free Rust build artifacts before packaging
152+
run: |
153+
source ./bin/activate-hermit
154+
echo "=== Disk usage before Rust cleanup ==="
155+
df -h
156+
du -sh target .hermit/rust 2>/dev/null || true
157+
158+
cargo clean
159+
160+
echo "=== Disk usage after Rust cleanup ==="
161+
df -h
162+
du -sh target .hermit/rust 2>/dev/null || true
163+
151164
- name: Cache pnpm dependencies
152165
uses: actions/cache@8b402f58fbc84540c8b491a91e594a4576fec3d7 # v5.0.2
153166
with:
@@ -169,10 +182,19 @@ jobs:
169182
- name: Build Linux packages
170183
env:
171184
GOOSE_DESKTOP_LINUX_VARIANT: ${{ matrix.variant }}
185+
DEBUG: "@malept/flatpak-bundler,electron-installer-flatpak"
172186
run: |
173187
source ./bin/activate-hermit
174188
cd ui/desktop
175189
echo "Building Linux packages (.deb, .rpm, and .flatpak) for ${{ matrix.variant }}..."
190+
trap 'echo "=== Disk usage after Linux packaging failure ==="; df -h; du -sh ../../target ../node_modules node_modules out ~/.local/share/flatpak 2>/dev/null || true' ERR
191+
echo "=== Disk usage before Linux packaging ==="
192+
df -h
193+
du -sh ../../target ../node_modules node_modules out ~/.local/share/flatpak 2>/dev/null || true
194+
echo "=== Flatpak tool versions ==="
195+
flatpak --version
196+
flatpak-builder --version
197+
flatpak remotes --user --show-details || true
176198
177199
# Build all configured packages
178200
pnpm run make --platform=linux --arch=x64

0 commit comments

Comments
 (0)