mirror of
https://github.com/shvedes/photoshop-linux.git
synced 2025-07-04 02:15:07 +00:00
cleanup
This commit is contained in:
parent
9217d9aea9
commit
0f9bd53282
5
.gitignore
vendored
5
.gitignore
vendored
@ -1,5 +0,0 @@
|
||||
uninstall.sh
|
||||
install.sh.bak
|
||||
install_log.log
|
||||
test.sh
|
||||
*.tar*
|
@ -7,19 +7,18 @@ By providing this software, I do not give any guarantees of its work. This scrip
|
||||
## Showcase
|
||||
|
||||

|
||||

|
||||
|
||||
### What works
|
||||
|
||||
- Drag and drop (doesn't work on Hyprland)
|
||||
- Drag and drop ~~(doesn't work on Hyprland)~~ (should be fixed with recent update. Not tested)
|
||||
- Clipboard image pasting
|
||||
- Mime type association (right click menu, see [here](https://github.com/user-attachments/assets/eb5f7ab3-fb75-47e7-841b-a763ca5e3382))
|
||||
- GPU acceleration
|
||||
- GPU acceleration (no warranty to work)
|
||||
|
||||
**Tested on:**
|
||||
- Arch Linux / CachyOS
|
||||
- KDE Plasma 6.2 (Wayland) / Hyprland
|
||||
- wine 9.19+ / wine-staging 9.20+ / wine-cachyos 9.20+
|
||||
- wine 9.19+ / wine-staging 9.20+ / ~~wine-cachyos 9.20+~~ window freezes
|
||||
- AMD GPU
|
||||
|
||||
### Known issues
|
||||
@ -34,7 +33,7 @@ By providing this software, I do not give any guarantees of its work. This scrip
|
||||
## Usage
|
||||
|
||||
```bash
|
||||
./install.sh
|
||||
./photoshop.sh
|
||||
Usage: ./install.sh [options...] <path>
|
||||
-a Use already existing Photoshop.tar.xz
|
||||
-i Install Photoshop
|
||||
|
@ -15,6 +15,7 @@ XDG_DATA_HOME="$HOME/.local/share"
|
||||
if [ ! -d "$XDG_CACHE_HOME" ]; then
|
||||
XDG_CACHE_HOME="$HOME/.cache"
|
||||
fi
|
||||
|
||||
# LOGGING SYSTEM
|
||||
# #####################################################################
|
||||
#
|
||||
@ -40,6 +41,7 @@ if [ -z "$XDG_DATA_HOME" ] && [ -z "$XDG_CACHE_HOME" ]; then
|
||||
fi
|
||||
|
||||
# Photoshop URL
|
||||
# TODO: change hosting server
|
||||
PHOTOSHOP_URL="https://spyderrock.com/kMnq2220-AdobePhotoshop2021.xz"
|
||||
|
||||
# sha256 checksum
|
||||
@ -103,9 +105,11 @@ ask_user() {
|
||||
# One of the functions will load a Photoshop `.webp` icon and convert it to `.png`. The `.png` file will be used in the `.desktop` entry.
|
||||
check_deps() {
|
||||
declare -A packages=(
|
||||
["curl"]="curl"
|
||||
["curl"]="curl" # Usually pre-installed on most distributions
|
||||
["wine"]="wine"
|
||||
["winetricks"]="winetricks"
|
||||
|
||||
# TODO: do not install ImageMagick if the user is using Papirus.
|
||||
["magick"]="imagemagick"
|
||||
)
|
||||
|
||||
@ -133,6 +137,7 @@ install_deps() {
|
||||
|
||||
source /etc/os-release
|
||||
|
||||
# Deprecated. Will not be updated. Still works for listed distros
|
||||
# Refer to /etc/os-release for more info
|
||||
case "$ID" in
|
||||
"arch"|"cachyos")
|
||||
@ -424,6 +429,7 @@ install_launcher() {
|
||||
echo -e "$LOG Installing launcher."
|
||||
|
||||
# Thanks to Katy248 (https://github.com/Katy248) for the idea.
|
||||
# Note: some variables are not used at all; TODO: remove them
|
||||
{
|
||||
echo "#!/usr/bin/env bash"
|
||||
echo ""
|
Loading…
x
Reference in New Issue
Block a user