From 55b1f6af255c3322b9b4a2b89e7d8d7a6cf27fed Mon Sep 17 00:00:00 2001 From: sudden6 Date: Sat, 14 Mar 2020 16:15:15 +0100 Subject: [PATCH] fix(flatpak): workaround unstable flathub downloads works around https://github.com/flathub/flathub/issues/845 (cherry picked from commit 69677831aba0763f5c8fdc1847db3e868e25c983) --- flatpak/build.sh | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/flatpak/build.sh b/flatpak/build.sh index 211b265c8..321817f91 100755 --- a/flatpak/build.sh +++ b/flatpak/build.sh @@ -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