mirror of
https://github.com/ublue-os/bazzite.git
synced 2025-01-25 06:35:25 +00:00
Merge pull request #125 from ublue-os/flatpaks
feat: Move Flatpak modifications to setup scripts
This commit is contained in:
commit
9561a3bbb5
@ -70,19 +70,6 @@ screens:
|
||||
default: false
|
||||
packages:
|
||||
- Switch SteamOS-BTRFS config to EXT4: sudo -A just --unstable switch-to-ext4
|
||||
can-we-modify-your-flatpaks:
|
||||
source: yafti.screen.consent
|
||||
values:
|
||||
title: Setting up Flathub
|
||||
condition:
|
||||
run: flatpak remotes --system | grep -q fedora
|
||||
description: |
|
||||
WARNING: This will modify your Flatpaks if you are rebasing! If you do not want to do this exit the installer.
|
||||
actions:
|
||||
- run: /usr/lib/fedora-third-party/fedora-third-party-opt-out
|
||||
- run: /usr/bin/fedora-third-party disable
|
||||
- run: flatpak remote-delete fedora --force
|
||||
- run: flatpak remote-add --if-not-exists --user flathub https://flathub.org/repo/flathub.flatpakrepo
|
||||
applications:
|
||||
source: yafti.screen.package
|
||||
values:
|
||||
|
@ -42,6 +42,12 @@ else
|
||||
fi
|
||||
fi
|
||||
|
||||
# Setup Flathub
|
||||
if grep -qz 'fedora' <<< $(flatpak remotes); then
|
||||
flatpak remote-delete fedora --force
|
||||
fi
|
||||
flatpak remote-add --if-not-exists --user flathub https://flathub.org/repo/flathub.flatpakrepo
|
||||
|
||||
# Prevent future executions
|
||||
echo "Writing state file"
|
||||
touch $HOME/.bazzite-configured
|
||||
touch $HOME/.bazzite-configured
|
||||
|
@ -1,6 +1,11 @@
|
||||
#!/usr/bin/env bash
|
||||
source /etc/default/bazzite
|
||||
|
||||
if grep -qz 'fedora' <<< $(flatpak remotes); then
|
||||
/usr/lib/fedora-third-party/fedora-third-party-opt-out
|
||||
/usr/bin/fedora-third-party disable
|
||||
fi
|
||||
|
||||
if [[ -f '/etc/flatpak/install' ]]; then
|
||||
cat /etc/flatpak/install | while read line; do
|
||||
flatpak install --system --noninteractive flathub $line
|
||||
|
@ -78,19 +78,6 @@ screens:
|
||||
packages:
|
||||
- GreenWithEnvy (GPU Overclocking): flatpak install --user --noninteractive com.leinardi.gwe
|
||||
- Supergfxctl (Hybrid GPU Switching): just --unstable enable-supergfxctl
|
||||
can-we-modify-your-flatpaks:
|
||||
source: yafti.screen.consent
|
||||
values:
|
||||
title: Setting up Flathub
|
||||
condition:
|
||||
run: flatpak remotes --system | grep -q fedora
|
||||
description: |
|
||||
WARNING: This will modify your Flatpaks if you are rebasing! If you do not want to do this exit the installer.
|
||||
actions:
|
||||
- run: /usr/lib/fedora-third-party/fedora-third-party-opt-out
|
||||
- run: /usr/bin/fedora-third-party disable
|
||||
- run: flatpak remote-delete fedora --force
|
||||
- run: flatpak remote-add --if-not-exists --user flathub https://flathub.org/repo/flathub.flatpakrepo
|
||||
applications:
|
||||
source: yafti.screen.package
|
||||
values:
|
||||
|
Loading…
x
Reference in New Issue
Block a user