mirror of
https://github.com/ublue-os/bazzite.git
synced 2025-02-04 03:39:58 +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
|
default: false
|
||||||
packages:
|
packages:
|
||||||
- Switch SteamOS-BTRFS config to EXT4: sudo -A just --unstable switch-to-ext4
|
- 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:
|
applications:
|
||||||
source: yafti.screen.package
|
source: yafti.screen.package
|
||||||
values:
|
values:
|
||||||
|
@ -42,6 +42,12 @@ else
|
|||||||
fi
|
fi
|
||||||
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
|
# Prevent future executions
|
||||||
echo "Writing state file"
|
echo "Writing state file"
|
||||||
touch $HOME/.bazzite-configured
|
touch $HOME/.bazzite-configured
|
||||||
|
@ -1,6 +1,11 @@
|
|||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
source /etc/default/bazzite
|
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
|
if [[ -f '/etc/flatpak/install' ]]; then
|
||||||
cat /etc/flatpak/install | while read line; do
|
cat /etc/flatpak/install | while read line; do
|
||||||
flatpak install --system --noninteractive flathub $line
|
flatpak install --system --noninteractive flathub $line
|
||||||
|
@ -78,19 +78,6 @@ screens:
|
|||||||
packages:
|
packages:
|
||||||
- GreenWithEnvy (GPU Overclocking): flatpak install --user --noninteractive com.leinardi.gwe
|
- GreenWithEnvy (GPU Overclocking): flatpak install --user --noninteractive com.leinardi.gwe
|
||||||
- Supergfxctl (Hybrid GPU Switching): just --unstable enable-supergfxctl
|
- 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:
|
applications:
|
||||||
source: yafti.screen.package
|
source: yafti.screen.package
|
||||||
values:
|
values:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user