This commit is contained in:
shvedes 2025-02-24 02:06:26 +01:00
parent 9217d9aea9
commit 0f9bd53282
3 changed files with 11 additions and 11 deletions

5
.gitignore vendored
View File

@ -1,5 +0,0 @@
uninstall.sh
install.sh.bak
install_log.log
test.sh
*.tar*

View File

@ -7,19 +7,18 @@ By providing this software, I do not give any guarantees of its work. This scrip
## Showcase
![image](https://github.com/user-attachments/assets/5f4edc77-a67e-49c5-8332-b436f1d6134d)
![image](https://github.com/user-attachments/assets/ad8c7477-4682-4edc-8665-4f5b5380a382)
### 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

View File

@ -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 ""