2021-05-04 17:43:00 +02:00
|
|
|
#!/usr/bin/env bash
|
|
|
|
|
|
|
|
# Show commands being executed
|
|
|
|
set -x
|
|
|
|
|
|
|
|
# So I don't have to remember these of wonder why my systems have different
|
|
|
|
# set of remotes and are missing something existing on another
|
2023-09-09 11:12:12 +02:00
|
|
|
flatpak remote-add --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo $@
|
|
|
|
flatpak remote-add --if-not-exists flathub-beta https://flathub.org/beta-repo/flathub-beta.flatpakrepo $@
|
2024-02-25 11:56:19 +01:00
|
|
|
#flatpak remote-add --if-not-exists kdeapps https://distribute.kde.org/kdeapps.flatpakrepo $@
|
2023-09-09 11:12:12 +02:00
|
|
|
flatpak remote-add --if-not-exists nheko-nightly https://nheko.im/nheko-reborn/nheko/-/raw/master/nheko-nightly.flatpakrepo $@
|
2022-04-29 09:13:46 +02:00
|
|
|
|
2022-05-21 20:30:49 +02:00
|
|
|
# Fedora?
|
2023-09-09 11:12:12 +02:00
|
|
|
flatpak remote-add --if-not-exists fedora oci+https://registry.fedoraproject.org $@
|
|
|
|
flatpak remote-add --if-not-exists fedora-testing oci+https://registry.fedoraproject.org#testing $@
|
2023-09-23 15:09:31 +02:00
|
|
|
|
|
|
|
# Unable to find .flatpakrepos, keep below actual repos.
|
|
|
|
#flatpak install https://ftp.gajim.org/flatpak/appstream/org.gajim.Gajim.Devel.flatpakref $@ &
|
|
|
|
|
2022-05-21 20:30:49 +02:00
|
|
|
# the previous command does nothing on Fedora as it already exists, but it still
|
|
|
|
# needs to be enabled
|
2023-09-09 11:12:12 +02:00
|
|
|
flatpak remote-modify --enable fedora-testing $@
|
2023-09-09 11:24:17 +02:00
|
|
|
# In case of similar issues on other distributions
|
|
|
|
flatpak remote-modify --enable flathub $@
|
|
|
|
flatpak remote-modify --enable flathub-beta $@
|
2024-02-25 11:56:19 +01:00
|
|
|
#flatpak remote-modify --enable kdeapps $@
|
2023-09-09 11:24:17 +02:00
|
|
|
# The other repositories are very unlikely to ship by default with anything
|
2022-05-21 20:30:49 +02:00
|
|
|
|
2024-02-25 12:04:20 +01:00
|
|
|
# These remotes no longer exist
|
2024-02-25 11:56:19 +01:00
|
|
|
flatpak remote-delete kdeapps $@
|
|
|
|
|
2024-01-30 17:40:32 +01:00
|
|
|
# Hints?
|
|
|
|
printf 'Only want verified flatpaks? No problem!\n\tflatpak remote-modify --subset=verified flathub\n'
|
2024-02-25 12:04:20 +01:00
|
|
|
printf 'kdeapps? https://userbase.kde.org/Tutorials/Flatpak#Nightly_KDE_apps\n'
|
|
|
|
|
2024-01-30 17:40:32 +01:00
|
|
|
# Revert? ~/.local/share/flatpak/repo/config or /var/lib/flatpak/repo/config
|
|
|
|
|
2021-05-04 17:43:00 +02:00
|
|
|
# Hide commands being executed again
|
|
|
|
set +x
|