mirror of
https://github.com/shvedes/photoshop-linux.git
synced 2026-06-22 15:02:42 +00:00
Compare commits
7 Commits
55e2743cdc
...
main
| Author | SHA1 | Date | |
|---|---|---|---|
| 89e116eb37 | |||
| 3a285712dc | |||
| 4854dad81e | |||
| a365571566 | |||
| 03aa300dbf | |||
| bc7d519ac4 | |||
| 465419dc07 |
@@ -1,5 +1,10 @@
|
|||||||
# Adobe Photoshop CC 2021 on Linux
|
# 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
|
## 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.
|
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)
|
- GPU acceleration (no warranty to work)
|
||||||
|
|
||||||
**Tested on:**
|
**Tested on:**
|
||||||
- Arch Linux / CachyOS
|
- Arch Linux / CachyOS / NixOS / Linux Mint
|
||||||
- KDE Plasma 6.2 (Wayland) / Hyprland
|
- KDE Plasma 6.2 (Wayland) / Hyprland
|
||||||
- wine 9.19+ / wine-staging 9.20+ / ~~wine-cachyos 9.20+~~ window freezes
|
- wine 9.19+ / wine-staging 9.20+ / ~~wine-cachyos 9.20+~~ window freezes
|
||||||
- AMD GPU
|
- AMD GPU
|
||||||
|
|||||||
+8
-6
@@ -76,7 +76,7 @@ on_interrupt() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
get_help() {
|
get_help() {
|
||||||
echo "Usage: ./install.sh [options...] <path>"
|
echo "Usage: $0 [options...] <path>"
|
||||||
echo " -a Use already existing Photoshop.tar.xz"
|
echo " -a Use already existing Photoshop.tar.xz"
|
||||||
echo " -i Install Photoshop"
|
echo " -i Install Photoshop"
|
||||||
echo " -u <install path> Uninstall 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."
|
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 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."
|
echo -e "$LOG Deleted old installation."
|
||||||
else
|
else
|
||||||
echo -e "$ERROR Something went wrong."
|
echo -e "$ERROR Something went wrong."
|
||||||
@@ -215,7 +215,7 @@ setup_wine() {
|
|||||||
|
|
||||||
{
|
{
|
||||||
echo "---------------------------------------------------------------------"
|
echo "---------------------------------------------------------------------"
|
||||||
echo " Downloading Visual C++ Libraries "
|
echo " Downloading Visual C++ Libraries "
|
||||||
echo "---------------------------------------------------------------------"
|
echo "---------------------------------------------------------------------"
|
||||||
} >>./install_log.log # Thanks to Katy248 for the idea.
|
} >>./install_log.log # Thanks to Katy248 for the idea.
|
||||||
|
|
||||||
@@ -282,12 +282,14 @@ download_photoshop() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
verify_path() {
|
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.
|
# 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
|
# https://github.com/shvedes/photoshop-linux/issues/1
|
||||||
if [[ ! "$path" == "$HOME"* ]]; then
|
if [[ ! "$path" == "$HOME"* ]]; then
|
||||||
echo -e "$ERROR Cannot validade ${YELLOW}\$HOME${RESET} path."
|
echo -e "$ERROR Cannot validate ${YELLOW}\$HOME${RESET} path."
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
@@ -447,7 +449,7 @@ install_launcher() {
|
|||||||
echo "PHOTOSHOP=\"\$WINEPREFIX/drive_c/Program Files/Adobe Photoshop 2021/photoshop.exe\""
|
echo "PHOTOSHOP=\"\$WINEPREFIX/drive_c/Program Files/Adobe Photoshop 2021/photoshop.exe\""
|
||||||
echo ""
|
echo ""
|
||||||
echo "echo \"All logs are saved in \$LOG_FILE\""
|
echo "echo \"All logs are saved in \$LOG_FILE\""
|
||||||
echo "wine64 \"\$PHOTOSHOP\" \"\$@\" &> \"\$LOG_FILE\" "
|
echo "wine \"\$PHOTOSHOP\" \"\$@\" &> \"\$LOG_FILE\" "
|
||||||
} >"$LAUNCHER"
|
} >"$LAUNCHER"
|
||||||
|
|
||||||
chmod +x "$LAUNCHER"
|
chmod +x "$LAUNCHER"
|
||||||
|
|||||||
Reference in New Issue
Block a user