Browse Source

fix(flatpak): workaround unstable flathub downloads

works around https://github.com/flathub/flathub/issues/845

(cherry picked from commit 69677831ab)
reviewable/pr6020/r1
sudden6 5 years ago committed by Anthony Bilinski
parent
commit
55b1f6af25
No known key found for this signature in database
GPG Key ID: 2AA8E0DA1B31FB3C
  1. 9
      flatpak/build.sh

9
flatpak/build.sh

@ -46,6 +46,15 @@ cd "$FP_BUILD_DIR" @@ -46,6 +46,15 @@ cd "$FP_BUILD_DIR"
# Add 'https://flathub.org' remote:
flatpak remote-add --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo
## Workaround for Flathub download issues: https://github.com/flathub/flathub/issues/845
# Pre download org.kde.Sdk because it fails often
for i in {1..5}
do
echo "Download try $i"
flatpak --system install flathub -y org.kde.Sdk/x86_64/5.12 | true
done
## Workaround end
# Build the qTox flatpak
flatpak-builder --disable-rofiles-fuse --install-deps-from=flathub --force-clean --repo=tox-repo qTox-flatpak "$QTOX_BUILD_DIR"/flatpak/io.github.qtox.qTox.json

Loading…
Cancel
Save