Skip to content
This repository has been archived by the owner on Feb 24, 2024. It is now read-only.

Commit

Permalink
Merge pull request #13 from ublue-os/flatpak-system-install
Browse files Browse the repository at this point in the history
WIP: Install Flatpaks
  • Loading branch information
castrojo authored Jul 21, 2023
2 parents f7fb585 + 41b41c8 commit e5de74d
Show file tree
Hide file tree
Showing 5 changed files with 19 additions and 2 deletions.
4 changes: 3 additions & 1 deletion Containerfile
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,16 @@ ARG FEDORA_MAJOR_VERSION="${FEDORA_MAJOR_VERSION}"
COPY etc /etc
COPY usr /usr

ADD flatpaks /tmp/flatpaks
ADD packages.json /tmp/packages.json
ADD build.sh /tmp/build.sh

RUN /tmp/build.sh && \
wget https://copr.fedorainfracloud.org/coprs/ublue-os/gnome-software/repo/fedora-${FEDORA_VERSION}/ublue-os-gnome-software-fedora-${FEDORA_VERSION}.repo -O /etc/yum.repos.d/ublue-os-gnome-software.repo && \
rpm-ostree override replace --experimental --from repo=copr:copr.fedorainfracloud.org:ublue-os:gnome-software gnome-software gnome-software-rpm-ostree && \
pip install --prefix=/usr yafti && \
cat /etc/flatpaks | while read line; do flatpak install --system --noninteractive --no-deploy flathub $line; done && \
systemctl unmask flatpak-system-install.service && \
systemctl enable flatpak-system-install.service && \
systemctl unmask dconf-update.service && \
systemctl enable dconf-update.service && \
systemctl enable rpm-ostree-countme.service && \
Expand Down
1 change: 1 addition & 0 deletions etc/flatpaks
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
org.learningequality.Kolibri
10 changes: 10 additions & 0 deletions etc/systemd/system/flatpak-system-install.service
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
[Unit]
Description=Install System Flatpak on boot
Documentation=https://github.com/ublue-os/endlish-oesque/issues/10

[Service]
Type=oneshot
ExecStart=/usr/bin/ublue-flatpak-system-install

[Install]
WantedBy=multi-user.target
1 change: 0 additions & 1 deletion flatpaks

This file was deleted.

5 changes: 5 additions & 0 deletions usr/bin/ublue-flatpak-system-install
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#!/bin/bash

cat /etc/flatpaks | while read line; do
flatpak install --system --noninteractive --no-pull flathub $line
done && mv /etc/flatpaks /etc/flatpaks.installed

0 comments on commit e5de74d

Please sign in to comment.