From fd3707372058b24f7edcefbdb80f1f53c00fe3e4 Mon Sep 17 00:00:00 2001 From: cheer <31635100+cheeeeer@users.noreply.github.com> Date: Sun, 25 Jun 2023 12:50:50 -0400 Subject: [PATCH 1/2] Updated install scripts - Remove redundant lines - Switch from allredist download to winetricks for vcrun - Group relevant code together - Use cat instead of echo - Remove trailing "/" from install path - Show help if no install path is given - Add option for camera raw - Clean up code --- scripts/photoshop2021install.sh | 147 ++++++++++++------------- scripts/photoshop2022install.sh | 183 ++++++++++++++------------------ 2 files changed, 143 insertions(+), 187 deletions(-) diff --git a/scripts/photoshop2021install.sh b/scripts/photoshop2021install.sh index 1adea79..ff6e094 100755 --- a/scripts/photoshop2021install.sh +++ b/scripts/photoshop2021install.sh @@ -1,106 +1,89 @@ #!/bin/bash -mkdir $1/Adobe-Photoshop +# Show help menu if no path is given +if [[ -z $1 ]]; then + printf "\nUsage: photoshop2021install.sh [INSTALL PATH] [OPTION]" + printf "\n\nOptions:" + printf "\n --camera-raw:\tInstalls Photoshop 2021 and Camera Raw\n" + exit 1 +fi -wget https://raw.githubusercontent.com/Winetricks/winetricks/master/src/winetricks -chmod +x winetricks - -WINEPREFIX=$1/Adobe-Photoshop wineboot - -rm -rf $1/progress.mimifile -touch $1/progress.mimifile -echo "10" >> $1/progress.mimifile - -WINEPREFIX=$1/Adobe-Photoshop ./winetricks win10 +INSTALL_PATH=$(echo "$1" | sed -e 's/\/$//') # Remove trailing slash +mkdir -p "$INSTALL_PATH" +export WINEPREFIX="$INSTALL_PATH/prefix" -curl -L "https://lulucloud.mywire.org/FileHosting/GithubProjects/allredist.tar.xz" > allredist.tar.xz -mkdir allredist +cd "$INSTALL_PATH" -rm -rf $1/progress.mimifile -touch $1/progress.mimifile -echo "20" >> $1/progress.mimifile - -tar -xf allredist.tar.xz -rm -rf allredist.tar.xz +# Winetricks +wget https://raw.githubusercontent.com/Winetricks/winetricks/master/src/winetricks +chmod +x winetricks +./winetricks -q vcrun2010 vcrun2012 vcrun2013 vcrun2019 fontsmooth=rgb gdiplus msxml3 msxml6 atmlib corefonts dxvk win10 vkd3d +rm winetricks -rm -rf $1/progress.mimifile -touch $1/progress.mimifile -echo "25" >> $1/progress.mimifile +echo "25" > progress.mimifile +# Adobe Photoshop 2021 curl -L "https://lulucloud.mywire.org/FileHosting/GithubProjects/AdobePhotoshop2021.tar.xz" > AdobePhotoshop2021.tar.xz - -rm -rf $1/progress.mimifile -touch $1/progress.mimifile -echo "50" >> $1/progress.mimifile - +echo "50" > progress.mimifile tar -xf AdobePhotoshop2021.tar.xz -rm -rf AdobePhotoshop2021.tar.xz - - -rm -rf $1/progress.mimifile -touch $1/progress.mimifile -echo "70" >> $1/progress.mimifile - - -WINEPREFIX=$1/Adobe-Photoshop ./winetricks fontsmooth=rgb gdiplus msxml3 msxml6 atmlib corefonts dxvk win10 vkd3d - -rm -rf $1/progress.mimifile -touch $1/progress.mimifile -echo "80" >> $1/progress.mimifile - - -WINEPREFIX=$1/Adobe-Photoshop wine allredist/redist/2010/vcredist_x64.exe /q /norestart -WINEPREFIX=$1/Adobe-Photoshop wine allredist/redist/2010/vcredist_x86.exe /q /norestart - -WINEPREFIX=$1/Adobe-Photoshop wine allredist/redist/2012/vcredist_x86.exe /install /quiet /norestart -WINEPREFIX=$1/Adobe-Photoshop wine allredist/redist/2012/vcredist_x64.exe /install /quiet /norestart +rm AdobePhotoshop2021.tar.xz +echo "70" > progress.mimifile +mkdir "prefix/drive_c/Program Files/Adobe" +mv "Adobe Photoshop 2021" "prefix/drive_c/Program Files/Adobe/Adobe Photoshop 2021" -WINEPREFIX=$1/Adobe-Photoshop wine allredist/redist/2013/vcredist_x86.exe /install /quiet /norestart -WINEPREFIX=$1/Adobe-Photoshop wine allredist/redist/2013/vcredist_x64.exe /install /quiet /norestart +# Create launcher.sh +touch "launcher.sh" +cat < "launcher.sh" +#!/usr/bin/env bash -WINEPREFIX=$1/Adobe-Photoshop wine allredist/redist/2019/VC_redist.x64.exe /install /quiet /norestart -WINEPREFIX=$1/Adobe-Photoshop wine allredist/redist/2019/VC_redist.x86.exe /install /quiet /norestart +cd "$INSTALL_PATH" +export SCR_PATH="pspath" +export CACHE_PATH="pscache" +export RESOURCES_PATH="\$SCR_PATH/resources" +export WINE_PREFIX="\$SCR_PATH/prefix" +export WINEPREFIX="$WINEPREFIX" +export DXVK_LOG_PATH='\$WINEPREFIX' +export DXVK_STATE_CACHE_PATH='\$WINEPREFIX' -rm -rf $1/progress.mimifile -touch $1/progress.mimifile -echo "90" >> $1/progress.mimifile +FILE_PATH=\$(winepath -w "\$1") +wine64 "prefix/drive_c/Program Files/Adobe/Adobe Photoshop 2021/photoshop.exe" "\$FILE_PATH" +EOF +chmod +x "launcher.sh" -mkdir $1/Adobe-Photoshop/drive_c/Program\ Files/Adobe -mv Adobe\ Photoshop\ 2021 $1/Adobe-Photoshop/drive_c/Program\ Files/Adobe/Adobe\ Photoshop\ 2021 +echo "90" > progress.mimifile -touch $1/Adobe-Photoshop/drive_c/launcher.sh -echo '#!/usr/bin/env bash' >> $1/Adobe-Photoshop/drive_c/launcher.sh -echo 'SCR_PATH="pspath"' >> $1/Adobe-Photoshop/drive_c/launcher.sh -echo 'CACHE_PATH="pscache"' >> $1/Adobe-Photoshop/drive_c/launcher.sh -echo 'RESOURCES_PATH="$SCR_PATH/resources"' >> $1/Adobe-Photoshop/drive_c/launcher.sh -echo 'WINE_PREFIX="$SCR_PATH/prefix"' >> $1/Adobe-Photoshop/drive_c/launcher.sh -echo 'FILE_PATH=$(winepath -w "$1")' >> $1/Adobe-Photoshop/drive_c/launcher.sh -echo 'export WINEPREFIX="'$1'/Adobe-Photoshop"' >> $1/Adobe-Photoshop/drive_c/launcher.sh -echo 'WINEPREFIX='$1'/Adobe-Photoshop DXVK_LOG_PATH='$1'/Adobe-Photoshop DXVK_STATE_CACHE_PATH='$1'/Adobe-Photoshop wine64 ' $1'/Adobe-Photoshop/drive_c/Program\ Files/Adobe/Adobe\ Photoshop\ 2021/photoshop.exe "$FILE_PATH"' >> $1/Adobe-Photoshop/drive_c/launcher.sh +# Icon +curl -L https://raw.githubusercontent.com/LinSoftWin/Photoshop-CC2022-Linux/main/Adobe-Photoshop-Gui-Installer/src/Assets/photoshop.png > photoshop.png +mv photoshop.png "$HOME/.local/share/icons/photoshop.png" -chmod +x $1/Adobe-Photoshop/drive_c/launcher.sh +# Create photoshop2021.desktop +touch "$HOME/.local/share/applications/photoshop2021.desktop" +cat < "$HOME/.local/share/applications/photoshop2021.desktop" +[Desktop Entry] +Name=Photoshop CC 2021 +Exec=bash -c "'$INSTALL_PATH/launcher.sh' %F" +Type=Application +Comment=Photoshop CC 2021 (Wine) +Categories=Graphics; +Icon=photoshop +StartupWMClass=photoshop.exe +EOF -WINEPREFIX=$1/Adobe-Photoshop winecfg -v win10 +# Camera Raw -mv allredist/photoshop.png ~/.local/share/icons/photoshop.png +if [[ -n $2 ]] && [[ $2 == "--camera-raw" ]]; then + echo "95" > progress.mimifile + curl -L "https://download.adobe.com/pub/adobe/photoshop/cameraraw/win/12.x/CameraRaw_12_2_1.exe" > CameraRaw_12_2_1.exe + wine CameraRaw_12_2_1.exe + rm CameraRaw_12_2_1.exe +fi -touch ~/.local/share/applications/photoshop.desktop -echo '[Desktop Entry]' >> ~/.local/share/applications/photoshop.desktop -echo 'Name=Photoshop CC 2021' >> ~/.local/share/applications/photoshop.desktop -echo 'Exec=bash -c "'$1'/Adobe-Photoshop/drive_c/launcher.sh %F"' >> ~/.local/share/applications/photoshop.desktop -echo 'Type=Application' >> ~/.local/share/applications/photoshop.desktop -echo 'Comment=Photoshop CC 2021 (Wine)' >> ~/.local/share/applications/photoshop.desktop -echo 'Categories=Graphics;' >> ~/.local/share/applications/photoshop.desktop -echo 'Icon=photoshop' >> ~/.local/share/applications/photoshop.desktop -echo 'StartupWMClass=photoshop.exe' >> ~/.local/share/applications/photoshop.desktop +echo "100" > progress.mimifile -rm -rf allredist -rm -rf winetricks +echo "Installation complete!" -rm -rf $1/progress.mimifile -touch $1/progress.mimifile -echo "100" >> $1/progress.mimifile +rm progress.mimifile diff --git a/scripts/photoshop2022install.sh b/scripts/photoshop2022install.sh index b0c7bcb..b0242fc 100644 --- a/scripts/photoshop2022install.sh +++ b/scripts/photoshop2022install.sh @@ -1,133 +1,106 @@ +#!/usr/bin/env bash -mkdir $1/Adobe-Photoshop +# Show help menu if no path is given +if [[ -z $1 ]]; then + printf "\nUsage: photoshop2021install.sh [INSTALL PATH]" + printf "\n\nExample:" + printf '\n photoshop2021install.sh "/home/user/.WineApps/Photoshop"\n' + exit 1 +fi -wget https://raw.githubusercontent.com/Winetricks/winetricks/master/src/winetricks -chmod +x winetricks - -WINEPREFIX=$1/Adobe-Photoshop wineboot +INSTALL_PATH=$(echo "$1" | sed -e 's/\/$//') # Remove trailing slash +mkdir -p "$INSTALL_PATH" +export WINEPREFIX="$INSTALL_PATH/prefix" -rm -rf $1/progress.mimifile -touch $1/progress.mimifile -echo "10" >> $1/progress.mimifile +cd "$INSTALL_PATH" -WINEPREFIX=$1/Adobe-Photoshop ./winetricks win10 - -curl -L "https://lulucloud.mywire.org/FileHosting/GithubProjects/PS2022/allredist.tar.xz" > allredist.tar.xz -mkdir allredist +# Custom Wine +curl -L "https://lulucloud.mywire.org/FileHosting/GithubProjects/PS2022/wine-tkg-staging-pspatch.tar.xz" > wine-tkg-staging-pspatch.tar.xz +tar -xf wine-tkg-staging-pspatch.tar.xz +rm wine-tkg-staging-pspatch.tar.xz +export WINE="$INSTALL_PATH/wine-tkg-staging-pspatch/bin/wine" -rm -rf $1/progress.mimifile -touch $1/progress.mimifile -echo "20" >> $1/progress.mimifile +echo "10" > progress.mimifile -tar -xf allredist.tar.xz -rm -rf allredist.tar.xz +# Winetricks +wget "https://raw.githubusercontent.com/Winetricks/winetricks/master/src/winetricks" +chmod +x winetricks +./winetricks -q vcrun2010 vcrun2012 vcrun2013 vcrun2019 fontsmooth=rgb gdiplus msxml3 msxml6 atmlib corefonts dxvk win10 vkd3d +rm winetricks -rm -rf $1/progress.mimifile -touch $1/progress.mimifile -echo "25" >> $1/progress.mimifile -curl -L "https://lulucloud.mywire.org/FileHosting/GithubProjects/PS2022/AdobePhotoshop2022.tar.xz" > AdobePhotoshop2022.tar.xz +echo "25" > progress.mimifile +# Adobe curl -L "https://lulucloud.mywire.org/FileHosting/GithubProjects/PS2022/Adobe.tar.xz" > Adobe.tar.xz tar -xf Adobe.tar.xz -mv Adobe $1/Adobe-Photoshop/drive_c/Program\ Files\ \(x86\)/Common\ Files -rm -rf Adobe.tar.xz -rm -rf Adobe +rm Adobe.tar.xz +mv Adobe "prefix/drive_c/Program Files (x86)/Common Files" -rm -rf $1/progress.mimifile -touch $1/progress.mimifile -echo "50" >> $1/progress.mimifile +echo "50" > progress.mimifile +# Adobe Photoshop 2022 +curl -L "https://lulucloud.mywire.org/FileHosting/GithubProjects/PS2022/AdobePhotoshop2022.tar.xz" > AdobePhotoshop2022.tar.xz tar -xf AdobePhotoshop2022.tar.xz -rm -rf AdobePhotoshop2022.tar.xz +rm AdobePhotoshop2022.tar.xz +mkdir "prefix/drive_c/Program Files/Adobe" +mv "Adobe Photoshop 2022" "prefix/drive_c/Program Files/Adobe/Adobe Photoshop 2022" +echo "75" > progress.mimifile -rm -rf $1/progress.mimifile -touch $1/progress.mimifile -echo "70" >> $1/progress.mimifile +# Create launcher.sh +touch "launcher.sh" +cat < "launcher.sh" +#!/usr/bin/env bash +cd "$INSTALL_PATH" -WINEPREFIX=$1/Adobe-Photoshop ./winetricks fontsmooth=rgb gdiplus msxml3 msxml6 atmlib corefonts dxvk win10 vkd3d +export SCR_PATH="pspath" +export CACHE_PATH="pscache" +export RESOURCES_PATH="\$SCR_PATH/resources" +export WINE_PREFIX="\$SCR_PATH/prefix" +export WINEPREFIX='$WINEPREFIX' +export DXVK_LOG_PATH="\$WINEPREFIX" +export DXVK_STATE_CACHE_PATH="\$WINEPREFIX" -rm -rf $1/progress.mimifile -touch $1/progress.mimifile -echo "80" >> $1/progress.mimifile +FILE_PATH=\$(wine-tkg-staging-pspatch/bin/winepath -w "\$1") +"wine-tkg-staging-pspatch/bin/wine64" "prefix/drive_c/Program Files/Adobe/Adobe Photoshop 2022/photoshop.exe" "\$FILE_PATH" +EOF +chmod +x "launcher.sh" -WINEPREFIX=$1/Adobe-Photoshop wine allredist/redist/2010/vcredist_x64.exe /q /norestart -WINEPREFIX=$1/Adobe-Photoshop wine allredist/redist/2010/vcredist_x86.exe /q /norestart - -WINEPREFIX=$1/Adobe-Photoshop wine allredist/redist/2012/vcredist_x86.exe /install /quiet /norestart -WINEPREFIX=$1/Adobe-Photoshop wine allredist/redist/2012/vcredist_x64.exe /install /quiet /norestart - -WINEPREFIX=$1/Adobe-Photoshop wine allredist/redist/2013/vcredist_x86.exe /install /quiet /norestart -WINEPREFIX=$1/Adobe-Photoshop wine allredist/redist/2013/vcredist_x64.exe /install /quiet /norestart - -WINEPREFIX=$1/Adobe-Photoshop wine allredist/redist/2019/VC_redist.x64.exe /install /quiet /norestart -WINEPREFIX=$1/Adobe-Photoshop wine allredist/redist/2019/VC_redist.x86.exe /install /quiet /norestart - -curl -L "https://lulucloud.mywire.org/FileHosting/GithubProjects/PS2022/wine-tkg-staging-pspatch.tar.xz" > wine-tkg-staging-pspatch.tar.xz -tar -xf wine-tkg-staging-pspatch.tar.xz -mv wine-tkg-staging-pspatch/ $1/Adobe-Photoshop/drive_c/ -rm -rf wine-tkg-staging-pspatch.tar.xz - -rm -rf $1/progress.mimifile -touch $1/progress.mimifile -echo "90" >> $1/progress.mimifile - -#WINEPREFIX=$1/Adobe-Photoshop sh allredist/setup_vkd3d_proton.sh install - -mkdir $1/Adobe-Photoshop/drive_c/Program\ Files/Adobe -mv Adobe\ Photoshop\ 2022 $1/Adobe-Photoshop/drive_c/Program\ Files/Adobe/Adobe\ Photoshop\ 2022 - -touch $1/Adobe-Photoshop/drive_c/launcher.sh -echo '#!/usr/bin/env bash' >> $1/Adobe-Photoshop/drive_c/launcher.sh -echo 'SCR_PATH="pspath"' >> $1/Adobe-Photoshop/drive_c/launcher.sh -echo 'CACHE_PATH="pscache"' >> $1/Adobe-Photoshop/drive_c/launcher.sh -echo 'RESOURCES_PATH="$SCR_PATH/resources"' >> $1/Adobe-Photoshop/drive_c/launcher.sh -echo 'WINE_PREFIX="$SCR_PATH/prefix"' >> $1/Adobe-Photoshop/drive_c/launcher.sh -echo 'FILE_PATH=$(winepath -w "$1")' >> $1/Adobe-Photoshop/drive_c/launcher.sh -echo 'export WINEPREFIX="'$1'/Adobe-Photoshop"' >> $1/Adobe-Photoshop/drive_c/launcher.sh -echo 'WINEPREFIX='$1'/Adobe-Photoshop DXVK_LOG_PATH='$1'/Adobe-Photoshop DXVK_STATE_CACHE_PATH='$1'/Adobe-Photoshop '$1'/Adobe-Photoshop/drive_c/wine-tkg-staging-pspatch/bin/wine64 ' $1'/Adobe-Photoshop/drive_c/Program\ Files/Adobe/Adobe\ Photoshop\ 2022/photoshop.exe "$FILE_PATH"' >> $1/Adobe-Photoshop/drive_c/launcher.sh - -chmod +x $1/Adobe-Photoshop/drive_c/launcher.sh - -rm -rf Adobe\ Photoshop\ 2022 - -WINEPREFIX=$1/Adobe-Photoshop winecfg -v win10 - - -mv allredist/photoshop.png ~/.local/share/icons/photoshop.png +# Icon +curl -L https://raw.githubusercontent.com/LinSoftWin/Photoshop-CC2022-Linux/main/Adobe-Photoshop-Gui-Installer/src/Assets/photoshop.png > photoshop.png +mv photoshop.png "$HOME/.local/share/icons/photoshop.png" +echo "85" > progress.mimifile +# Adobe Photoshop 2022 Settings curl -L "https://lulucloud.mywire.org/FileHosting/GithubProjects/PS2022/Adobe_Photoshop_2022_Settings.tar.xz" > Adobe_Photoshop_2022_Settings.tar.xz tar -xf Adobe_Photoshop_2022_Settings.tar.xz -mkdir $1/Adobe-Photoshop/drive_c/users/$USER/AppData/Roaming/Adobe -mkdir $1/Adobe-Photoshop/drive_c/users/$USER/AppData/Roaming/Adobe/Adobe\ Photoshop\ 2022/ -mv Adobe\ Photoshop\ 2022\ Settings $1/Adobe-Photoshop/drive_c/users/$USER/AppData/Roaming/Adobe/Adobe\ Photoshop\ 2022/ -rm -rf Adobe_Photoshop_2022_Settings.tar.xz -rm -rf Adobe\ Photoshop\ 2022\ Settings - - -touch ~/.local/share/applications/photoshop.desktop -echo '[Desktop Entry]' >> ~/.local/share/applications/photoshop.desktop -echo 'Name=Photoshop CC 2022' >> ~/.local/share/applications/photoshop.desktop -echo 'Exec=bash -c "'$1'/Adobe-Photoshop/drive_c/launcher.sh %F"' >> ~/.local/share/applications/photoshop.desktop -echo 'Type=Application' >> ~/.local/share/applications/photoshop.desktop -echo 'Comment=Photoshop CC 2022 (Wine)' >> ~/.local/share/applications/photoshop.desktop -echo 'Categories=Graphics;' >> ~/.local/share/applications/photoshop.desktop -echo 'Icon=photoshop' >> ~/.local/share/applications/photoshop.desktop -echo 'StartupWMClass=photoshop.exe' >> ~/.local/share/applications/photoshop.desktop - - -rm -rf allredist -rm -rf winetricks - -rm -rf $1/progress.mimifile -touch $1/progress.mimifile -echo "100" >> $1/progress.mimifile +mkdir -p "prefix/drive_c/users/$USER/AppData/Roaming/Adobe/Adobe Photoshop 2022" +mv "Adobe Photoshop 2022 Settings" "prefix/drive_c/users/$USER/AppData/Roaming/Adobe/Adobe Photoshop 2022" +rm Adobe_Photoshop_2022_Settings.tar.xz + +echo "95" > progress.mimifile + +# Create photoshop2022.desktop +touch "$HOME/.local/share/applications/photoshop2022.desktop" +cat < "$HOME/.local/share/applications/photoshop2022.desktop" +[Desktop Entry] +Name=Photoshop CC 2022 +Exec=bash -c "'$INSTALL_PATH/launcher.sh' %F" +Type=Application +Comment=Photoshop CC 2022 (Wine) +Categories=Graphics; +Icon=photoshop +StartupWMClass=photoshop.exe +EOF + +echo "100" > progress.mimifile sleep 5 -rm -rf $1/progress.mimifile -rm -rf $1/photoshop2022install.sh +echo "Installation complete!" + +rm progress.mimifile From 4ade22e173e7f4d1196d9a61128b35834bcb3310 Mon Sep 17 00:00:00 2001 From: cheer <31635100+cheeeeer@users.noreply.github.com> Date: Sun, 25 Jun 2023 12:52:41 -0400 Subject: [PATCH 2/2] Delete photoshop2021installcr.sh - Remove photoshop2021installcr.sh, as it is made redundant by the --camera-raw option in photoshop2021install.sh introduced by fd37073 --- scripts/photoshop2021installcr.sh | 115 ------------------------------ 1 file changed, 115 deletions(-) delete mode 100644 scripts/photoshop2021installcr.sh diff --git a/scripts/photoshop2021installcr.sh b/scripts/photoshop2021installcr.sh deleted file mode 100644 index 8acc104..0000000 --- a/scripts/photoshop2021installcr.sh +++ /dev/null @@ -1,115 +0,0 @@ -#!/bin/bash - -mkdir $1/Adobe-Photoshop - -wget https://raw.githubusercontent.com/Winetricks/winetricks/master/src/winetricks -chmod +x winetricks - -WINEPREFIX=$1/Adobe-Photoshop wineboot - -rm -rf $1/progress.mimifile -touch $1/progress.mimifile -echo "10" >> $1/progress.mimifile - -WINEPREFIX=$1/Adobe-Photoshop ./winetricks win10 - -curl -L "https://lulucloud.mywire.org/FileHosting/GithubProjects/allredist.tar.xz" > allredist.tar.xz -mkdir allredist - -rm -rf $1/progress.mimifile -touch $1/progress.mimifile -echo "20" >> $1/progress.mimifile - -tar -xf allredist.tar.xz -rm -rf allredist.tar.xz - -rm -rf $1/progress.mimifile -touch $1/progress.mimifile -echo "25" >> $1/progress.mimifile - -curl -L "https://lulucloud.mywire.org/FileHosting/GithubProjects/AdobePhotoshop2021.tar.xz" > AdobePhotoshop2021.tar.xz - -rm -rf $1/progress.mimifile -touch $1/progress.mimifile -echo "50" >> $1/progress.mimifile - -tar -xf AdobePhotoshop2021.tar.xz -rm -rf AdobePhotoshop2021.tar.xz - - -rm -rf $1/progress.mimifile -touch $1/progress.mimifile -echo "70" >> $1/progress.mimifile - - -WINEPREFIX=$1/Adobe-Photoshop ./winetricks fontsmooth=rgb gdiplus msxml3 msxml6 atmlib corefonts dxvk win10 vkd3d - -rm -rf $1/progress.mimifile -touch $1/progress.mimifile -echo "80" >> $1/progress.mimifile - - -WINEPREFIX=$1/Adobe-Photoshop wine allredist/redist/2010/vcredist_x64.exe /q /norestart -WINEPREFIX=$1/Adobe-Photoshop wine allredist/redist/2010/vcredist_x86.exe /q /norestart - -WINEPREFIX=$1/Adobe-Photoshop wine allredist/redist/2012/vcredist_x86.exe /install /quiet /norestart -WINEPREFIX=$1/Adobe-Photoshop wine allredist/redist/2012/vcredist_x64.exe /install /quiet /norestart - -WINEPREFIX=$1/Adobe-Photoshop wine allredist/redist/2013/vcredist_x86.exe /install /quiet /norestart -WINEPREFIX=$1/Adobe-Photoshop wine allredist/redist/2013/vcredist_x64.exe /install /quiet /norestart - -WINEPREFIX=$1/Adobe-Photoshop wine allredist/redist/2019/VC_redist.x64.exe /install /quiet /norestart -WINEPREFIX=$1/Adobe-Photoshop wine allredist/redist/2019/VC_redist.x86.exe /install /quiet /norestart - - -rm -rf $1/progress.mimifile -touch $1/progress.mimifile -echo "90" >> $1/progress.mimifile - - -mkdir $1/Adobe-Photoshop/drive_c/Program\ Files/Adobe -mv Adobe\ Photoshop\ 2021 $1/Adobe-Photoshop/drive_c/Program\ Files/Adobe/Adobe\ Photoshop\ 2021 - -touch $1/Adobe-Photoshop/drive_c/launcher.sh -echo '#!/usr/bin/env bash' >> $1/Adobe-Photoshop/drive_c/launcher.sh -echo 'SCR_PATH="pspath"' >> $1/Adobe-Photoshop/drive_c/launcher.sh -echo 'CACHE_PATH="pscache"' >> $1/Adobe-Photoshop/drive_c/launcher.sh -echo 'RESOURCES_PATH="$SCR_PATH/resources"' >> $1/Adobe-Photoshop/drive_c/launcher.sh -echo 'WINE_PREFIX="$SCR_PATH/prefix"' >> $1/Adobe-Photoshop/drive_c/launcher.sh -echo 'FILE_PATH=$(winepath -w "$1")' >> $1/Adobe-Photoshop/drive_c/launcher.sh -echo 'export WINEPREFIX="'$1'/Adobe-Photoshop"' >> $1/Adobe-Photoshop/drive_c/launcher.sh -echo 'WINEPREFIX='$1'/Adobe-Photoshop DXVK_LOG_PATH='$1'/Adobe-Photoshop DXVK_STATE_CACHE_PATH='$1'/Adobe-Photoshop wine64 ' $1'/Adobe-Photoshop/drive_c/Program\ Files/Adobe/Adobe\ Photoshop\ 2021/photoshop.exe "$FILE_PATH"' >> $1/Adobe-Photoshop/drive_c/launcher.sh - -chmod +x $1/Adobe-Photoshop/drive_c/launcher.sh - -WINEPREFIX=$1/Adobe-Photoshop winecfg -v win10 - - -mv allredist/photoshop.png ~/.local/share/icons/photoshop.png - - -touch ~/.local/share/applications/photoshop.desktop -echo '[Desktop Entry]' >> ~/.local/share/applications/photoshop.desktop -echo 'Name=Photoshop CC 2021' >> ~/.local/share/applications/photoshop.desktop -echo 'Exec=bash -c "'$1'/Adobe-Photoshop/drive_c/launcher.sh %F"' >> ~/.local/share/applications/photoshop.desktop -echo 'Type=Application' >> ~/.local/share/applications/photoshop.desktop -echo 'Comment=Photoshop CC 2021 (Wine)' >> ~/.local/share/applications/photoshop.desktop -echo 'Categories=Graphics;' >> ~/.local/share/applications/photoshop.desktop -echo 'Icon=photoshop' >> ~/.local/share/applications/photoshop.desktop -echo 'StartupWMClass=photoshop.exe' >> ~/.local/share/applications/photoshop.desktop - -rm -rf allredist -rm -rf winetricks - - -rm -rf $1/progress.mimifile -touch $1/progress.mimifile -echo "95" >> $1/progress.mimifile - -curl -L "https://download.adobe.com/pub/adobe/photoshop/cameraraw/win/12.x/CameraRaw_12_2_1.exe" > CameraRaw_12_2_1.exe -WINEPREFIX=$1/Adobe-Photoshop wine CameraRaw_12_2_1.exe -rm -rf CameraRaw_12_2_1.exe - -rm -rf $1/progress.mimifile -touch $1/progress.mimifile -echo "100" >> $1/progress.mimifile