mirror of
https://github.com/RetroDECK/RetroDECK.git
synced 2024-11-22 05:55:38 +00:00
MANIFEST: outsourcing dependencies installation
This commit is contained in:
parent
f6f69adc18
commit
4d43bbd1cf
2
.github/workflows/cooker-selfhosted.yml
vendored
2
.github/workflows/cooker-selfhosted.yml
vendored
|
@ -56,7 +56,7 @@ jobs:
|
||||||
submodules: 'true'
|
submodules: 'true'
|
||||||
|
|
||||||
- name: "Install dependencies"
|
- name: "Install dependencies"
|
||||||
run: "automation_tools/install_dependencies.sh"
|
run: /bin/bash | curl "https://raw.githubusercontent.com/RetroDECK/components-template/refs/heads/main/automation_tools/install_dependencies.sh"
|
||||||
|
|
||||||
- name: Generate cooker build ID
|
- name: Generate cooker build ID
|
||||||
run: "/bin/bash ${GITHUB_WORKSPACE}/automation_tools/cooker_build_id.sh"
|
run: "/bin/bash ${GITHUB_WORKSPACE}/automation_tools/cooker_build_id.sh"
|
||||||
|
|
|
@ -1,33 +0,0 @@
|
||||||
#!/bin/bash
|
|
||||||
# This script is installing the required dependencies to correctly run the pipeline and build the flatpak
|
|
||||||
|
|
||||||
unset pkg_mgr
|
|
||||||
|
|
||||||
# rpm-ostree must be checked before dnf because a dnf (wrapper) command also works on rpm-ostree distros (not what we want)
|
|
||||||
for potential_pkg_mgr in apt pacman rpm-ostree dnf; do
|
|
||||||
command -v "$potential_pkg_mgr" &> /dev/null && pkg_mgr="$potential_pkg_mgr" && break
|
|
||||||
done
|
|
||||||
|
|
||||||
case "$pkg_mgr" in
|
|
||||||
apt)
|
|
||||||
sudo add-apt-repository -y ppa:flatpak/stable
|
|
||||||
sudo apt update
|
|
||||||
sudo apt install -y flatpak flatpak-builder p7zip-full xmlstarlet bzip2 curl jq
|
|
||||||
;;
|
|
||||||
pacman)
|
|
||||||
sudo pacman -Syu --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 $pkg_mgr not supported. Please open an issue."
|
|
||||||
;;
|
|
||||||
esac
|
|
||||||
|
|
||||||
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
|
|
Loading…
Reference in a new issue