1
0
mirror of https://github.com/qTox/qTox.git synced 2024-03-22 14:00:36 +08:00

fix(flatpak): workaround unstable flathub downloads

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

(cherry picked from commit 69677831ab)
This commit is contained in:
sudden6 2020-03-14 16:15:15 +01:00 committed by Anthony Bilinski
parent f2fa601073
commit 55b1f6af25
No known key found for this signature in database
GPG Key ID: 2AA8E0DA1B31FB3C

View File

@ -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