Install Adobe Acrobat Pro

This commit is contained in:
Rezart Qelibari
2022-05-04 18:31:33 +02:00
parent 6766042125
commit 957cae89fd

View File

@@ -51,9 +51,24 @@ function installParallels() {
[ -x "${inittoolPath}" ] && indicateActivity -- 'Running Parallels inittool' ${inittoolPath} init [ -x "${inittoolPath}" ] && indicateActivity -- 'Running Parallels inittool' ${inittoolPath} init
} }
function installAdobeAcrobatPro() {
[[ -d '/Applications/Adobe Acrobat DC' ]] && return
indicateActivity -- "Download Adobe Acrobat Pro" ${homebrew_path} fetch --cask adobe-acrobat-pro || return
local dmgPath="$(${homebrew_path} --cache --cask adobe-acrobat-pro)"
local tmpd="$(mktemp -d -t 'adobe-acrobat')"
pushd -q $tmpd
hdiutil attach $dmgPath -nobrowse -readonly -mountpoint $tmpd || return
traps add detach-mount "find '${tmpd}' -type d -mindepth 1 -maxdepth 1 -exec hdiutil detach {} \; >&! /dev/null"
trap "popd -q; traps call exit; rm -fr '${tmpd}'; traps remove detach-mount" EXIT
local pkg="$(find $tmpd -name '*Installer.pkg' | head -n1)"
[[ -n $pkg ]] || return
indicateActivity -- 'Install Adobe Acrobat Pro' installer -package $pkg -target LocalSystem
}
function installCasks() { function installCasks() {
lop -y body:h1 -- -i 'Installing Homebrew casks' lop -y body:h1 -- -i 'Installing Homebrew casks'
installParallels installParallels
installAdobeAcrobatPro
installCask rectangle-pro installCask rectangle-pro
if ! isDebug; then if ! isDebug; then
installCask little-snitch installCask little-snitch
@@ -100,6 +115,10 @@ function configure_system() {
function getExecPrerequisites() { function getExecPrerequisites() {
cmds=( cmds=(
[brew]='' [brew]=''
[find]=''
[head]=''
[installer]=''
[hdiutil]=''
) )
id -nG | grep admin >&! /dev/null || { lop -- -e 'This module requires the user to be in admin group. Please run again as either root or an admin user.'; return 11 } id -nG | grep admin >&! /dev/null || { lop -- -e 'This module requires the user to be in admin group. Please run again as either root or an admin user.'; return 11 }
checkCommands checkCommands