photoshopCClinux/scripts/PhotoshopSetup.sh

74 lines
1.8 KiB
Bash
Raw Normal View History

2020-02-09 19:00:41 +00:00
#!/usr/bin/env bash
source "sharedFuncs.sh"
2020-02-10 09:14:38 +00:00
2021-01-02 13:15:41 +00:00
function main() {
mkdir -p $SCR_PATH
mkdir -p $CACHE_PATH
2020-02-10 10:13:07 +00:00
setup_log "================| script executed |================"
2020-12-30 21:51:21 +00:00
is64
#make sure aria2c and wine package is already installed
2020-02-10 09:14:38 +00:00
package_installed aria2c
package_installed wine
2020-02-11 06:53:27 +00:00
package_installed md5sum
2020-04-08 12:47:51 +00:00
package_installed winetricks
2020-02-11 06:53:27 +00:00
RESOURCES_PATH="$SCR_PATH/resources"
2020-02-11 06:53:27 +00:00
WINE_PREFIX="$SCR_PATH/prefix"
2020-02-11 07:54:27 +00:00
#create new wine prefix for photoshop
rmdir_if_exist $WINE_PREFIX
2021-01-02 19:58:44 +00:00
#export necessary variable for wine
2020-02-11 07:54:27 +00:00
export_var
#config wine prefix and install mono and gecko automatic
echo -e "\033[1;93mplease install mono and gecko packages then click on OK button\e[0m"
2020-02-11 18:09:20 +00:00
winecfg 2> "$SCR_PATH/wine-error.log"
2020-02-11 19:10:30 +00:00
if [ $? -eq 0 ];then
show_message "prefix configured..."
sleep 5
else
error "prefix config failed :("
fi
2020-02-11 18:51:58 +00:00
2020-02-11 19:10:30 +00:00
if [ -f "$WINE_PREFIX/user.reg" ];then
#add dark mod
set_dark_mod
else
error "user.reg Not Found :("
fi
#create resources directory
rmdir_if_exist $RESOURCES_PATH
2020-02-12 07:41:27 +00:00
2020-04-08 12:47:51 +00:00
# winetricks atmlib corefonts fontsmooth=rgb gdiplus vcrun2008 vcrun2010 vcrun2012 vcrun2013 vcrun2015 atmlib msxml3 msxml6 gdiplus
winetricks atmlib fontsmooth=rgb vcrun2008 vcrun2010 vcrun2012 vcrun2013 atmlib msxml3 msxml6
2020-02-12 12:54:39 +00:00
#install photoshop
sleep 3
install_photoshopSE
sleep 5
2020-04-08 12:47:51 +00:00
2020-02-13 16:06:32 +00:00
replacement
2020-02-12 12:54:39 +00:00
if [ -d $RESOURCES_PATH ];then
show_message "deleting resources folder"
rm -rf $RESOURCES_PATH
else
error "resources folder Not Found"
fi
2020-02-12 19:34:41 +00:00
2020-05-04 09:56:30 +00:00
launcher
2020-02-13 08:13:15 +00:00
show_message "\033[1;33mwhen you run photoshop for the first time it may take a while\e[0m"
2020-06-29 23:35:11 +00:00
show_message "Almost finished..."
2020-02-13 08:13:15 +00:00
sleep 30
2020-02-10 10:13:07 +00:00
}
check_arg $@
save_paths
main