luncher function added

This commit is contained in:
victor 2020-02-12 23:04:41 +03:30
parent 6803b1494b
commit 3989eb3410
1 changed files with 25 additions and 0 deletions

View File

@ -86,6 +86,8 @@ function main(){
else
error "resources folder Not Found"
fi
luncher
}
function setup_log(){
@ -108,6 +110,29 @@ function warning(){
setup_log "$@"
}
function luncher(){
local luncher_path="$PWD/luncher.sh"
rmdir_if_exist "$SCR_PATH/luncher"
if [ -f "$luncher_path" ];then
show_message "luncher.sh detected..."
cp "$luncher_path" "$SCR_PATH/luncher" || error "can't copy luncher"
chmod +x "$SCR_PATH/luncher/luncher.sh"
else
error "luncher.sh Note Found"
fi
local desktop_entry="$PWD/photoshop.desktop"
if [ -f "$desktop_entry" ];then
show_message "desktop entry detected..."
cp "$desktop_entry" "$HOME/.local/share/applications" || error "can't copy desktop entry"
sed -i "s|gictorbit|$HOME|g" "$HOME/.local/share/applications/photoshop.desktop"
else
error "desktop entry Not Found"
fi
}
function install_photoshopSE(){
local filename="photoshopCC-V19.1.6-2018x64.tgz"
local filemd5="b63f6ed690343ee12b6195424f94c33f"