Files
fluffy-pancake/build/10-build.sh
T
humocs-manandGitHub 73cc0b37a5 Enable Flathub and initialize Flatpak database
Add Flathub repository and initialize Flatpak database.
2026-03-15 18:54:06 +01:00

62 lines
1.4 KiB
Bash
Executable File

#!/usr/bin/bash
set -eoux pipefail
###############################################################################
# Main Build Script
###############################################################################
# Source helper functions
# shellcheck source=/dev/null
source /ctx/build/copr-helpers.sh
# Enable nullglob for all glob operations to prevent failures on empty matches
shopt -s nullglob
dnf5 remove -y \
nvtop \
htop
echo "::group:: Install Packages"
# flatpak und just sind im base-main vorhanden, aber wir ergänzen deine Tools
dnf5 install -y \
fastfetch \
btop \
libvirt \
libvirt-daemon \
libvirt-daemon-driver-qemu \
libvirt-daemon-config-network \
libvirt-daemon-kvm \
libvirt-client \
qemu-kvm \
qemu-img \
virt-manager \
virt-viewer \
zenity \
usbredir
echo "::endgroup::"
echo "::group:: Installing COSMIC"
copr_install_isolated "ryanabx/cosmic-epoch" \
cosmic-desktop
echo "::endgroup::"
echo "::group:: System Configuration"
systemctl enable podman.socket
systemctl enable bluetooth.service
systemctl enable libvirtd.service
systemctl enable virtlogd.service
# Flathub aktivieren
flatpak remote-add --if-not-exists flathub https://dl.flathub.org/repo/flathub.flatpakrepo && \
# Appstream-Datenbank vorab generieren
flatpak update --appstream -y && \
# Flatpak-Datenbank initialisieren
flatpak list || true
echo "::endgroup::"
shopt -u nullglob
echo "Custom build complete!"