mirror of
https://github.com/RetroDECK/RetroDECK.git
synced 2024-11-21 21:45:39 +00:00
Add build dependencies for more distros
This commit is contained in:
parent
1023f17bbf
commit
a1fa8049cc
|
@ -1,6 +1,29 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
# This scritp is installing the required dependencies to correctly run the pipeline and buold the flatpak
|
# This script is installing the required dependencies to correctly run the pipeline and build the flatpak
|
||||||
|
|
||||||
|
# rpm-ostree must be checked before dnf because a dnf (wrapper) command also works on rpm-ostree distros (not what we want)
|
||||||
|
for pkg_manager in apt pacman rpm-ostree dnf; do
|
||||||
|
command -v "$pkg_manager" &> /dev/null && result="$pkg_manager" && break
|
||||||
|
done
|
||||||
|
|
||||||
|
case $result in
|
||||||
|
apt)
|
||||||
|
sudo apt install -y flatpak flatpak-builder p7zip-full xmlstarlet bzip2 curl jq
|
||||||
|
;;
|
||||||
|
pacman)
|
||||||
|
sudo pacman -S --noconfirm flatpak flatpak-builder p7zip xmlstarlet bzip2
|
||||||
|
;;
|
||||||
|
rpm-ostree)
|
||||||
|
echo "When using a distro with rpm-ostree, you shouldn't build directly on the host. Try using a distrobox."
|
||||||
|
exit 1
|
||||||
|
;;
|
||||||
|
dnf)
|
||||||
|
sudo dnf install -y flatpak flatpak-builder p7zip p7zip-plugins xmlstarlet bzip2 curl
|
||||||
|
;;
|
||||||
|
*)
|
||||||
|
echo "Package manager $result not supported. Please open an issue."
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
|
||||||
sudo apt install -y flatpak flatpak-builder p7zip-full xmlstarlet bzip2 curl jq
|
|
||||||
flatpak remote-add --user --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo
|
flatpak remote-add --user --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo
|
||||||
flatpak remote-add --user --if-not-exists flathub-beta https://flathub.org/beta-repo/flathub-beta.flatpakrepo
|
flatpak remote-add --user --if-not-exists flathub-beta https://flathub.org/beta-repo/flathub-beta.flatpakrepo
|
||||||
|
|
|
@ -2,9 +2,6 @@
|
||||||
|
|
||||||
# WARNING: run this script from the project root folder, not from here!!
|
# WARNING: run this script from the project root folder, not from here!!
|
||||||
|
|
||||||
# TODO: FEDORA
|
|
||||||
# sudo dnf install -y flatpak flatpak-builder p7zip p7zip-plugins xmlstarlet bzip2 curl
|
|
||||||
|
|
||||||
git submodule update --init --recursive
|
git submodule update --init --recursive
|
||||||
|
|
||||||
export GITHUB_WORKSPACE="."
|
export GITHUB_WORKSPACE="."
|
||||||
|
|
Loading…
Reference in a new issue