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
This commit is contained in:
sudden6 2020-03-14 16:15:15 +01:00
parent 564b1eb2a6
commit 69677831ab
No known key found for this signature in database
GPG Key ID: 279509B499E032B9

View File

@ -46,6 +46,15 @@ cd "$FP_BUILD_DIR"
# Add 'https://flathub.org' remote: # Add 'https://flathub.org' remote:
flatpak remote-add --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo 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 # 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 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