-
Notifications
You must be signed in to change notification settings - Fork 8
/
main-menu.sh
executable file
·85 lines (79 loc) · 2.66 KB
/
main-menu.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
#!/bin/bash
source "./scritps/shared.sh"
export WINEPREFIX="$PWD/Ps-prefix"
! [ -d logs ] && mkdir logs
clear
echo "${bold}-------------- Adobe Photoshop CC 2021 (v22) installer main menu on Linux --------------${reset}"
echo ""
PS3="
[Choose options 1-6 or 7 to exit]: "
options=("Install Photoshop CC 2021 (v22)" "Uninstall Photoshop CC 2021 (v22)" "Install Adobe Camera Raw Plugin" "Install/Uninstall vdk3d proton" "Configure Photoshop wine prefix (winecfg)" "Update desktop integration" "Exit")
select opt in "${options[@]}"
do
case $opt in
"Install Photoshop CC 2021 (v22)")
echo ""
bash scripts/installer.sh | tee logs/installer.log
;;
"Uninstall Photoshop CC 2021 (v22)")
echo ""
bash scripts/uninstaller.sh | tee logs/uninstaller.log
;;
"Install Adobe Camera Raw Plugin")
echo ""
bash scripts/camera_raw.sh | tee logs/camera_raw.log
;;
"Install/Uninstall vdk3d proton")
choice="u"
echo ""
read -p "Would you like to install or uninstall vkd3d proton [i=install u=uninstall]: " choice
if [[ $choice = "i" ]]
then
./scripts/setup_vkd3d_proton.sh install
echo ""
echo "Vdk3d proton installed!"
echo ""
elif [[ $choice = "u" ]]
then
./scripts/setup_vkd3d_proton.sh uninstall
echo ""
echo "Vdk3d proton uninstalled!"
echo ""
else
echo "Invalid choice: $choice"
fi
;;
"Configure Photoshop wine prefix (winecfg)")
echo ""
echo "Starting winecfg..."
echo ""
winecfg | tee logs/winecfg.log
sleep 1
;;
"Update desktop integration")
echo "[Desktop Entry]
Name=Photoshop CC
Exec=bash -c '$PWD/scripts/launcher.sh'
Type=Application
Comment=Photoshop CC 2021
Categories=Graphics;2DGraphics;RasterGraphics;Production;
Icon=$PWD/images/photoshop.svg
StartupWMClass=photoshop.exe
MimeType=image/png;image/psd;" > ~/.local/share/applications/photoshop.desktop
echo "#\!/bin/bash
cd \"$PWD/Ps-prefix/drive_c/Program Files/Adobe/Adobe Photoshop 2021/\"
WINEPREFIX=\"$PWD/Ps-prefix\" wine photoshop.exe $1" > scripts/launcher.sh
chmod u+x scripts/launcher.sh
chmod u+x ~/.local/share/applications/photoshop.desktop
echo ""
echo "Desktop entry updated!"
echo ""
;;
"Exit")
echo ""
echo "Exiting Photoshop Main Menu."
break
;;
*) echo "Invalid option: $REPLY";;
esac
done