remove flatpak
All checks were successful
Build and Release / build-and-release (push) Successful in 12m28s

This commit is contained in:
Bryan1029384756
2026-02-19 17:37:17 -06:00
parent 10fa3c71ac
commit 4b3bdda373
3 changed files with 603 additions and 50 deletions

View File

@@ -14,36 +14,6 @@ jobs:
- name: Checkout repository
uses: actions/checkout@v4
- name: Setup Flatpak wrappers for Docker
run: |
# Wrap flatpak: skip 'update' (runtimes pre-installed in image),
# inject --disable-sandbox for 'build-export' (bwrap can't create namespaces in Docker)
mv /usr/bin/flatpak /usr/bin/flatpak.real
cat > /usr/bin/flatpak << 'WRAPPER'
#!/bin/bash
if [ "$1" = "update" ]; then
echo "[flatpak-wrapper] Skipping update (pre-installed)" >&2
exit 0
fi
if [ "$1" = "build-export" ]; then
shift
exec /usr/bin/flatpak.real build-export --disable-sandbox "$@"
fi
exec /usr/bin/flatpak.real "$@"
WRAPPER
chmod +x /usr/bin/flatpak
# Wrap flatpak-builder: inject --disable-rofiles-fuse for Docker
mv /usr/bin/flatpak-builder /usr/bin/flatpak-builder.real
cat > /usr/bin/flatpak-builder << 'FBWRAPPER'
#!/bin/bash
exec /usr/bin/flatpak-builder.real --disable-rofiles-fuse "$@"
FBWRAPPER
chmod +x /usr/bin/flatpak-builder
# Add user remote as fallback
flatpak.real --user remote-add --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo
- name: Cache npm and Electron
uses: actions/cache@v4
with:
@@ -207,7 +177,6 @@ jobs:
apps/electron/dist/*.exe \
apps/electron/dist/*.exe.blockmap \
apps/electron/dist/*.AppImage \
apps/electron/dist/*.flatpak \
apps/electron/dist/*.apk; do
[ -f "$file" ] || continue
FILENAME=$(basename "$file")