-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpost-install.sh
More file actions
74 lines (64 loc) · 1.43 KB
/
Copy pathpost-install.sh
File metadata and controls
74 lines (64 loc) · 1.43 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
#!/bin/bash
set -e
MARKER="/var/lib/flatpak-bootstrap.done"
if [ -f "$MARKER" ]; then
exit 0
fi
flatpak remote-delete fedora || true
sleep 2
flatpak remote-add --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo
sleep 2
apps=(
app.drey.Dialect
be.alexandervanhee.gradia
ca.desrt.dconf-editor
com.brave.Browser
com.dec05eba.gpu_screen_recorder
com.github.finefindus.eyedropper
com.github.tchx84.Flatseal
com.mattjakeman.ExtensionManager
com.obsproject.Studio
com.protonvpn.www
com.spotify.Client
fr.handbrake.ghb
im.riot.Riot
io.github.fabrialberio.pinapp
io.github.flattool.Ignition
io.github.flattool.Warehouse
io.gitlab.news_flash.NewsFlash
io.mpv.Mpv
io.typora.Typora
net.nokyan.Resources
org.altlinux.Tuner
org.deluge_torrent.deluge
org.gimp.GIMP
org.gnome.Calculator
org.gnome.Evince
org.gnome.Loupe
org.gnome.Showtime
org.gnome.meld
org.libreoffice.LibreOffice
org.localsend.localsend_app
org.mozilla.firefox
org.shotcut.Shotcut
org.telegram.desktop
org.upscayl.Upscayl
org.videolan.VLC
page.codeberg.libre_menu_editor.LibreMenuEditor
page.tesk.Refine
xyz.tytanium.DoorKnocker
)
installed=$(flatpak list --app --columns=application)
missing=()
for app in "${apps[@]}"; do
if ! grep -qx "$app" <<< "$installed"; then
missing+=("$app")
fi
done
if [ "${#missing[@]}" -eq 0 ]; then
touch "$MARKER"
exit 0
fi
echo "Instalando Flatpaks ausentes..."
flatpak install -y flathub "${missing[@]}"
touch "$MARKER"