Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(ci): Add system flatpaks #1022

Closed
wants to merge 20 commits into from
Closed
Show file tree
Hide file tree
Changes from 3 commits
Commits
Show all changes
20 commits
Select commit Hold shift + click to select a range
2348ffe
chore(ci): added flatpak_remote_refs
noelmiller Mar 12, 2024
c8a0a69
chore(ci): Replaced entire script with single line to update flatpaks
noelmiller Mar 12, 2024
1cb5447
chore(ci): re-enabled service
noelmiller Mar 12, 2024
e490ce3
chore(ci): remove fedora flatpak repo
noelmiller Mar 12, 2024
628ad62
chore(ci): push before SCALE
noelmiller Mar 14, 2024
e9d48d5
chore(ci): use apt and checkout repo
noelmiller Mar 16, 2024
3f787c4
chore(ci): combine workflows into one
noelmiller Mar 19, 2024
db05cd6
Merge branch 'testing' into add_system_flatpaks
noelmiller Mar 19, 2024
1a74138
chore(ci): ignored asus images for 38 and added 38 back
noelmiller Mar 19, 2024
57dba2a
chore(ci): fixup image exclusions and exclude 38 for ISO builds
noelmiller Mar 19, 2024
dd6a08e
chore(ci): removed unneeded job
noelmiller Mar 19, 2024
ea2156d
chore(ci): removed h264 due to requirement for internet connection
noelmiller Mar 19, 2024
564cc53
chore(ci): use unified build-action
noelmiller Mar 19, 2024
af09759
chore(ci): added needs for just file syntax check
noelmiller Mar 19, 2024
ed044d5
chore(ci): add AKMODS, remove when 38 is not longer needed
noelmiller Mar 20, 2024
6c83b10
chore(ci): ignore building latest for 38 and ignore building gts for 39
noelmiller Mar 20, 2024
e40ef61
chore(ci): add target to build proper container file
noelmiller Mar 20, 2024
98327f8
chore(ci): move to input not in matrix
noelmiller Mar 20, 2024
9b090fd
chore(ci): move from matrix to specific line
noelmiller Mar 20, 2024
bd44925
chore(ci): fixup pr detection
noelmiller Mar 20, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion .github/workflows/build_iso.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ jobs:
matrix:
image_name: [bluefin, bluefin-nvidia, bluefin-asus, bluefin-asus-nvidia, bluefin-surface, bluefin-surface-nvidia, bluefin-dx, bluefin-dx-nvidia, bluefin-dx-asus, bluefin-dx-surface, bluefin-dx-asus-nvidia, bluefin-dx-surface-nvidia]
major_version: [39]
image_tag: [latest]
image_tag: [latest, 39-testing]
steps:
- name: Free Disk Space (Ubuntu)
uses: jlumbroso/free-disk-space@v1.3.1
Expand All @@ -47,6 +47,7 @@ jobs:
iso_name: ${{ matrix.image_name }}-${{ matrix.image_tag }}-${{ matrix.major_version}}
enable_cache_dnf: "false"
enable_cache_skopeo: "false"
flatpak_remote_refs: "runtime/org.kde.Platform/x86_64/6.5 runtime/org.freedesktop.Platform/x86_64/23.08 runtime/org.gnome.Platform/x86_64/45 runtime/org.gnome.Platform/x86_64/44 app/org.gnome.Calculator/x86_64/stable app/org.gnome.Calendar/x86_64/stable app/org.gnome.Characters/x86_64/stable app/org.gnome.Connections/x86_64/stable app/org.gnome.Contacts/x86_64/stable app/org.gnome.Evince/x86_64/stable app/org.gnome.Loupe/x86_64/stable app/org.gnome.Logs/x86_64/stable app/org.gnome.Maps/x86_64/stable app/org.gnome.NautilusPreviewer/x86_64/stable app/org.gnome.TextEditor/x86_64/stable app/org.gnome.Weather/x86_64/stable app/org.gnome.baobab/x86_64/stable app/org.gnome.clocks/x86_64/stable app/org.gnome.font-viewer/x86_64/stable app/com.mattjakeman.ExtensionManager/x86_64/stable app/com.github.tchx84.Flatseal/x86_64/stable app/io.github.dvlv.boxbuddyrs/x86_64/stable app/io.github.flattool.Warehouse/x86_64/stable app/org.fedoraproject.MediaWriter/x86_64/stable app/io.missioncenter.MissionCenter/x86_64/stable app/io.github.celluloid_player.Celluloid/x86_64/stable app/org.mozilla.firefox/x86_64/stable"
p5 marked this conversation as resolved.
Show resolved Hide resolved

- name: Upload ISOs and Checksum to Job Artifacts
if: github.event_name == 'pull_request'
Expand Down
1 change: 1 addition & 0 deletions Containerfile
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,7 @@ RUN wget https://copr.fedorainfracloud.org/coprs/ublue-os/staging/repo/fedora-"$
systemctl enable rpm-ostree-countme.service && \
systemctl enable tailscaled.service && \
systemctl enable dconf-update.service && \
systemctl enable ublue-system-flatpak-manager.service && \
systemctl enable ublue-update.timer && \
systemctl enable ublue-system-setup.service && \
systemctl --global enable ublue-user-setup.service && \
Expand Down
43 changes: 1 addition & 42 deletions usr/libexec/ublue-system-flatpak-manager
Original file line number Diff line number Diff line change
@@ -1,44 +1,3 @@
#!/usr/bin/bash

# Script Version
VER=3
VER_FILE="/etc/ublue/flatpak_manager_version"
VER_RAN=$(cat $VER_FILE)

# Run script if updated
if [[ -f $VER_FILE && $VER = $VER_RAN ]]; then
echo "Flatpak manager v$VER has already ran. Exiting..."
exit 0
fi

# Opt out of and remove Fedora's flatpak repo
if grep -qz 'fedora' <<< $(flatpak remotes); then
/usr/lib/fedora-third-party/fedora-third-party-opt-out
/usr/bin/fedora-third-party disable
flatpak remote-delete fedora --force
fi

# Ensure Flathub is enabled
flatpak remote-add --if-not-exists --system flathub /usr/etc/flatpak/remotes.d/flathub.flatpakrepo
flatpak remote-modify --system --enable flathub

# Lists of flatpaks
FLATPAK_LIST=$(flatpak list --columns=application)
INSTALL_LIST=$(cat /etc/flatpak/system/install)
REMOVE_LIST=$(cat /etc/flatpak/system/remove)

# Install flatpaks in list
if [[ -n $INSTALL_LIST ]]; then
if ! flatpak install --system --noninteractive flathub ${INSTALL_LIST[@]}; then
# exit on error
exit 1
fi
fi

# Remove flatpaks in list once
if [[ ! -f $VER_FILE && -n $REMOVE_LIST ]]; then
flatpak remove --system --noninteractive ${REMOVE_LIST[@]}
fi

mkdir -p /etc/ublue
echo $VER > $VER_FILE
flatpak --system update -y
Loading