This repository has been archived by the owner on Nov 14, 2024. It is now read-only.
forked from KyLinuxOS/Gaming-Flatpak
-
Notifications
You must be signed in to change notification settings - Fork 4
/
install.sh
120 lines (96 loc) · 2.89 KB
/
install.sh
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
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
#!/bin/bash
set -e
#Depots flatapk
flatpak remote-add --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo
flatpak remote-add --if-not-exists --user flathub-beta https://flathub.org/beta-repo/flathub-beta.flatpakrepo
flatpak update --appstream
# program list
progams=(
"Steam"
"ProtonGe"
"PorotonUP-QT"
"Lutris"
"Flatseal"
"Mangohud"
"Discord"
# "AppImageLauncher"
"HeroicGameLauncher"
"OpenRGB"
)
Steam() {
echo "Installation de steam"
flatpak install flathub com.valvesoftware.Steam
}
ProtonGe() {
echo "Installation de ProtonGe"
flatpak install com.valvesoftware.Steam.CompatibilityTool.Proton-GE
}
PorotonUP-QT() {
echo "Installation de PorotonUP-QT"
flatpak install flathub net.davidotek.pupgui2
}
Lutris() {
echo "Installation de Lutris"
flatpak install --user flathub-beta net.lutris.Lutris//beta
}
Flatseal() {
echo "Installation de Flatseal"
flatpak install flathub com.github.tchx84.Flatseal
}
Mangohud() {
echo "Installation de Mangohud"
flatpak install flathub org.freedesktop.Platform.VulkanLayer.MangoHud
}
Discord() {
echo "Installation de Discord"
flatpak install flathub com.discordapp.Discord
}
##AppImageLauncher() {
# echo "Installation de AppImageLauncher"
# mkdir -p $HOME/AppImage
# curl -o $HOME/AppImage/appimagelauncher https://github.com/TheAssassin/AppImageLauncher/releases/download/v2.2.0/appimagelauncher-lite-2.2.0-travis995-0f91801-x86_64.AppImage
}
HeroicGameLauncher() {
echo "Installation de HeroicGameLauncher"
mkdir -p $HOME/AppImage
curl -o $HOME/AppImage/Heroic-2.1.0.AppImage https://github.com/Heroic-Games-Launcher/HeroicGamesLauncher/releases/download/v2.1.0/Heroic-2.1.0.AppImage
}
OpenRGB() {
echo "Installation de OpenRGB"
mkdir -p $HOME/AppImage
curl -o $HOME/AppImage/OpenRGB.AppImage https://gitlab.com/CalcProgrammer1/OpenRGB/-/jobs/artifacts/master/download?job=Linux+64+AppImage
}
echo "### installation complete"
# auto select all
for i in ${!progams[@]}; do
choices[i]="*"
done
menu() {
echo "Choisir les programmes à installer :"
for i in ${!progams[@]}; do
printf "%3d%s) %s\n" $((i+1)) "${choices[i]:- }" "${progams[i]}"
done
[[ "$msg" ]] && echo "$msg"; :
}
prompt="Choisir un programme (choisir à nouveau pour l'enlever, ENTREE quand ok) : "
while menu && read -rp "$prompt" num && [[ "$num" ]]; do
[[ "$num" != *[![:digit:]]* ]] &&
(( num > 0 && num <= ${#progams[@]} )) ||
{ msg="Option invalide : $num"; continue; }
((num--));
[[ "${choices[num]}" ]] && choices[num]="" || choices[num]="*"
done
printf "Vous avez choisi"; msg=" quedalle."
for i in ${!progams[@]}; do
[[ "${choices[i]}" ]] && { printf " %s" "${progams[i]}"; msg=""; }
done
echo "$msg"
read -p "Installer (y/N)? " -n 1 -r
echo
if [[ $REPLY =~ ^[Yy]$ ]]
then
for i in ${!progams[@]}; do
option_noconfirm="true"
[[ "${choices[i]}" ]] && ${progams[i]}
done
fi