mirror of
https://github.com/mtan93/Installomator.git
synced 2026-03-08 05:31:53 +00:00
added omnigraffle and omnifocus
This commit is contained in:
@@ -43,7 +43,7 @@ BLOCKING_PROCESS_ACTION=prompt_user
|
|||||||
# The type of the installation. Possible values:
|
# The type of the installation. Possible values:
|
||||||
# - dmg
|
# - dmg
|
||||||
# - pkg
|
# - pkg
|
||||||
# - zip (not yet implemented)
|
# - zip
|
||||||
# - pkgInDmg (not yet implemented)
|
# - pkgInDmg (not yet implemented)
|
||||||
# - pkgInZip (not yet implemented)
|
# - pkgInZip (not yet implemented)
|
||||||
#
|
#
|
||||||
@@ -209,6 +209,21 @@ case $identifier in
|
|||||||
downloadURL="https://bitbucket.org"$(curl -s https://bitbucket.org/prowarehouse-nl/erase-install/downloads/ | grep pkg | cut -d'"' -f2 | head -n 1)
|
downloadURL="https://bitbucket.org"$(curl -s https://bitbucket.org/prowarehouse-nl/erase-install/downloads/ | grep pkg | cut -d'"' -f2 | head -n 1)
|
||||||
expectedTeamID="R55HK5K86Y"
|
expectedTeamID="R55HK5K86Y"
|
||||||
;;
|
;;
|
||||||
|
omnigraffle7)
|
||||||
|
name="OmniGraffle"
|
||||||
|
type="dmg"
|
||||||
|
downloadURL=$(curl -fs "https://update.omnigroup.com/appcast/com.omnigroup.OmniGraffle7" \
|
||||||
|
| xpath '//rss/channel/item[1]/enclosure[1]/@url' 2>/dev/null | cut -d '"' -f 2)
|
||||||
|
expectedTeamID="34YW5XSRB7"
|
||||||
|
;;
|
||||||
|
omnifocus3)
|
||||||
|
name="OmniFocus"
|
||||||
|
type="dmg"
|
||||||
|
downloadURL=$(curl -fs https://update.omnigroup.com/appcast/com.omnigroup.OmniFocus3 \
|
||||||
|
| xpath '//rss/channel/item/enclosure[1]/@url' 2>/dev/null | cut -d '"' -f 2)
|
||||||
|
expectedTeamID="34YW5XSRB7"
|
||||||
|
;;
|
||||||
|
|
||||||
|
|
||||||
microsoftoffice365)
|
microsoftoffice365)
|
||||||
name="MicrosoftOffice365"
|
name="MicrosoftOffice365"
|
||||||
@@ -475,8 +490,8 @@ installAppWithPath() { # $1: path to app to install in $targetDir
|
|||||||
installFromDMG() {
|
installFromDMG() {
|
||||||
# mount the dmg
|
# mount the dmg
|
||||||
echo "Mounting $tmpDir/$archiveName"
|
echo "Mounting $tmpDir/$archiveName"
|
||||||
# set -o pipefail
|
# always pipe 'Y\n' in case the dmg requires an agreement
|
||||||
if ! dmgmount=$(hdiutil attach "$tmpDir/$archiveName" -nobrowse -readonly | tail -n 1 | cut -c 54- ); then
|
if ! dmgmount=$(echo 'Y'$'\n' | hdiutil attach "$tmpDir/$archiveName" -nobrowse -readonly | tail -n 1 | cut -c 54- ); then
|
||||||
echo "Error mounting $tmpDir/$archiveName"
|
echo "Error mounting $tmpDir/$archiveName"
|
||||||
cleanupAndExit 3
|
cleanupAndExit 3
|
||||||
fi
|
fi
|
||||||
|
|||||||
Reference in New Issue
Block a user