photoshopCClinux/scripts/cameraRawInstaller.sh

41 lines
1.3 KiB
Bash
Raw Permalink Normal View History

2020-05-09 05:55:53 +00:00
#!/usr/bin/env bash
function main() {
2020-05-09 05:55:53 +00:00
2020-05-19 13:53:16 +00:00
source "sharedFuncs.sh"
load_paths
2020-05-09 05:55:53 +00:00
WINE_PREFIX="$SCR_PATH/prefix"
#resources will be remove after installation
RESOURCES_PATH="$SCR_PATH/resources"
check_ps_installed
2020-05-19 13:53:16 +00:00
export_var
2020-05-09 05:55:53 +00:00
install_cameraRaw
}
function check_ps_installed() {
([ -d "$SCR_PATH" ] && [ -d "$CACHE_PATH" ] && [ -d "$WINE_PREFIX" ] && show_message2 "photoshop installed") || error2 "photoshop not found you should intsall photoshop first"
2020-05-09 05:55:53 +00:00
}
function install_cameraRaw() {
2020-05-09 05:55:53 +00:00
local filename="CameraRaw_12_2_1.exe"
local filemd5="b6a6b362e0c159be5ba1d0eb1ebd0054"
local filelink="https://download.adobe.com/pub/adobe/photoshop/cameraraw/win/12.x/CameraRaw_12_2_1.exe"
local filepath="$CACHE_PATH/$filename"
download_component $filepath $filemd5 $filelink $filename
echo "===============| Adobe Camera Raw v12 |===============" >> "$SCR_PATH/wine-error.log"
2020-05-19 13:53:16 +00:00
show_message2 "Adobe Camera Raw v12 installation..."
2020-05-09 05:55:53 +00:00
2020-05-19 13:53:16 +00:00
wine $filepath &>> "$SCR_PATH/wine-error.log" || error2 "sorry something went wrong during Adobe Camera Raw v12 installation"
2020-05-09 05:55:53 +00:00
2021-01-09 10:57:04 +00:00
notify-send "Photoshop CC" "Adobe Camera Raw v12 installed successfully" -i "photoshop"
2020-05-19 13:53:16 +00:00
show_message2 "Adobe Camera Raw v12 installed..."
2020-05-09 05:55:53 +00:00
unset filename filemd5 filelink filepath
}
main