Skip to content
This repository has been archived by the owner on Feb 12, 2023. It is now read-only.

Commit

Permalink
fix(flatpak): workaround unstable flathub downloads
Browse files Browse the repository at this point in the history
works around flathub/flathub#845

(cherry picked from commit 6967783)
  • Loading branch information
sudden6 authored and anthonybilinski committed Mar 19, 2020
1 parent f2fa601 commit 55b1f6a
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions flatpak/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 55b1f6a

Please sign in to comment.