Update Fedora state: 2026-04-28 17:48

This commit is contained in:
Breadway 2026-04-28 17:48:16 +08:00
commit 10d32b81df
4 changed files with 60 additions and 0 deletions

0
apps-dnf.txt Normal file
View file

18
apps-flatpak.txt Normal file
View file

@ -0,0 +1,18 @@
app.zen_browser.zen
art.taunoerik.tauno-monitor
cc.arduino.IDE2
cc.arduino.arduinoide
com.getmailspring.Mailspring
com.spotify.Client
com.unity.UnityHub
com.visualstudio.code
com.vivaldi.Vivaldi
dev.bartuzen.qbitcontroller
eu.betterbird.Betterbird
io.github.shiftey.Desktop
io.github.softfever.OrcaSlicer
net.davidotek.pupgui2
net.thunderbird.Thunderbird
org.equicord.equibop
org.jellyfin.JellyfinDesktop
org.videolan.vlc

32
update-apps.sh Normal file
View file

@ -0,0 +1,32 @@
#!/bin/bash
# Hash triggers (Script runs if these files change):
# dnf: {{ include "apps-dnf.txt" | sha256sum }}
# flatpak: {{ include "apps-flatpak.txt" | sha256sum }}
# vscode: {{ include "vscode-extensions.txt" | sha256sum }}
echo "Change detected in Fedora app lists. Restoring environment..."
# 1. Install DNF Packages
if [ -f {{ joinPath .chezmoi.sourceDir "apps-dnf.txt" | quote }} ]; then
echo "Installing DNF packages..."
sudo dnf install -y $(cat {{ joinPath .chezmoi.sourceDir "apps-dnf.txt" | quote }})
fi
# 2. Install Flatpaks (Very common on Fedora)
if [ -f {{ joinPath .chezmoi.sourceDir "apps-flatpak.txt" | quote }} ]; then
echo "Installing Flatpaks..."
while read -r fp; do
flatpak install -y flathub "$fp"
done < {{ joinPath .chezmoi.sourceDir "apps-flatpak.txt" | quote }}
fi
# 3. Restore VS Code Extensions
if command -v code &> /dev/null; then
echo "Restoring VS Code Extensions..."
while read -r extension; do
code --install-extension "$extension" --force
done < {{ joinPath .chezmoi.sourceDir "vscode-extensions.txt" | quote }}
fi
echo "Fedora environment is up to date!"

10
vscode-extensions.txt Normal file
View file

@ -0,0 +1,10 @@
github.copilot-chat
ms-python.debugpy
ms-python.python
ms-python.vscode-pylance
ms-python.vscode-python-envs
ms-vscode-remote.remote-ssh
ms-vscode-remote.remote-ssh-edit
ms-vscode.remote-explorer
ms-vscode.remote-server
tailscale.vscode-tailscale