Compare commits

..

7 Commits

Author SHA1 Message Date
shvedes 89e116eb37 discontinued 2025-07-30 20:01:07 +02:00
shvedes 3a285712dc README.md update 2025-05-25 14:48:21 +02:00
shvedes 4854dad81e use $0 instead of hardcoded help menu 2025-05-25 13:17:50 +02:00
shvedes a365571566 do not verbose rm command 2025-05-25 13:15:45 +02:00
shvedes 03aa300dbf use wine instead of wine64 2025-05-25 12:54:21 +02:00
shved. bc7d519ac4 Merge pull request #10 from 0x01422/main
Update photoshop.sh
2025-05-24 16:20:39 +02:00
0x01 465419dc07 Update photoshop.sh
Changed "validade" to "validate"
Made relative paths available and also tried $pwd for verification, since that works for me.
2025-05-24 04:49:17 +00:00
2 changed files with 14 additions and 7 deletions
+6 -1
View File
@@ -1,5 +1,10 @@
# Adobe Photoshop CC 2021 on Linux
## Discontinued
This project is no longer supported because I have lost the desire to maintain it. I remind you that this is not a standalone project, but a wrapper of [this](https://github.com/LinSoftWin/Photoshop-CC2022-Linux) repository, which in turn is maintained and actively updated. If you were a user of my project, please take a look at the work of [LinSoftWin](https://github.com/LinSoftWin).
## Disclaimer
By providing this software, I do not give any guarantees of its work. This script was inspired by the work of [LinSoftWin](https://github.com/LinSoftWin/Photoshop-CC2022-Linux). This is only its adaptation. This script will be maintained and developed until I get bored and/or have free time. PR is welcome.
@@ -19,7 +24,7 @@ Please note that this code is a piece of garbage. Although it works in most case
- GPU acceleration (no warranty to work)
**Tested on:**
- Arch Linux / CachyOS
- Arch Linux / CachyOS / NixOS / Linux Mint
- KDE Plasma 6.2 (Wayland) / Hyprland
- wine 9.19+ / wine-staging 9.20+ / ~~wine-cachyos 9.20+~~ window freezes
- AMD GPU
+8 -6
View File
@@ -76,7 +76,7 @@ on_interrupt() {
}
get_help() {
echo "Usage: ./install.sh [options...] <path>"
echo "Usage: $0 [options...] <path>"
echo " -a Use already existing Photoshop.tar.xz"
echo " -i Install Photoshop"
echo " -u <install path> Uninstall Photoshop"
@@ -185,7 +185,7 @@ is_path_exists() {
echo -e "$WARNING The specified path '${YELLOW}${1}${RESET}' already exists."
if ask_user "Do you want to ${RED}delete${RESET} previous installation?"; then
if rm -rfv "${1:?}" 2>>./install_log.log; then
if rm -rfv "${1:?}" &>>./install_log.log; then
echo -e "$LOG Deleted old installation."
else
echo -e "$ERROR Something went wrong."
@@ -215,7 +215,7 @@ setup_wine() {
{
echo "---------------------------------------------------------------------"
echo " Downloading Visual C++ Libraries "
echo " Downloading Visual C++ Libraries "
echo "---------------------------------------------------------------------"
} >>./install_log.log # Thanks to Katy248 for the idea.
@@ -282,12 +282,14 @@ download_photoshop() {
}
verify_path() {
local path="$1"
# test $1, if that fails test $pwd
# relative paths are also working now
local path="$(realpath "${1:-$(pwd)}")"
# Check the validity of the path if the user has specified the absolute path manually. This is necessary in case the user accidentally misspells $HOME paths.
# https://github.com/shvedes/photoshop-linux/issues/1
if [[ ! "$path" == "$HOME"* ]]; then
echo -e "$ERROR Cannot validade ${YELLOW}\$HOME${RESET} path."
echo -e "$ERROR Cannot validate ${YELLOW}\$HOME${RESET} path."
exit 1
fi
@@ -447,7 +449,7 @@ install_launcher() {
echo "PHOTOSHOP=\"\$WINEPREFIX/drive_c/Program Files/Adobe Photoshop 2021/photoshop.exe\""
echo ""
echo "echo \"All logs are saved in \$LOG_FILE\""
echo "wine64 \"\$PHOTOSHOP\" \"\$@\" &> \"\$LOG_FILE\" "
echo "wine \"\$PHOTOSHOP\" \"\$@\" &> \"\$LOG_FILE\" "
} >"$LAUNCHER"
chmod +x "$LAUNCHER"