-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup-immutable.sh
More file actions
executable file
·30 lines (24 loc) · 1.08 KB
/
Copy pathsetup-immutable.sh
File metadata and controls
executable file
·30 lines (24 loc) · 1.08 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
#!/bin/sh
name="SALMS"
SCRIPT_DIR=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )
icon_path="$SCRIPT_DIR/samm.png"
desktop_files=${XDG_DATA_HOME:-$HOME/.local/share}/applications
icon_files=${XDG_DATA_HOME:-$HOME/.local/share}/icons/hicolor/256x256/apps
# checks to see if all of the dependencies are installed
check_command_exists() {
appid="${*}"
if ! flatpak info "$appid" >/dev/null 2>&1; then
echo "$appid isnt installed, please install the flatpak before continuing, if you have the native version, please use the setup-linux script"
exit 1
fi
}
check_command_exists com.github.Matoking.protontricks
selector=$(zenity --list --column=Game --column=Description --title "Select a Game" "Sonic Adventure DX" "Downloads the SADX mod installer for Sonic Adventure DX" "Sonic Adventure 2" "Adds mod support for Sonic Adventure 2" --width 720 --height 100)
echo "$selector selected"
if [[ $selector == "Sonic Adventure DX" ]]; then
. $SCRIPT_DIR/flatpak/sadx.sh
elif [[ $selector == "Sonic Adventure 2" ]]; then
. $SCRIPT_DIR/flatpak/sa2.sh
else
exit 0
fi