mirror of
https://github.com/mtan93/Installomator.git
synced 2026-04-03 22:04:30 +01:00
updated comments
This commit is contained in:
@@ -22,6 +22,14 @@ fi
|
|||||||
#
|
#
|
||||||
# - downloadURL:
|
# - downloadURL:
|
||||||
# URL to download the dmg
|
# URL to download the dmg
|
||||||
|
#
|
||||||
|
# - expectedTeamID:
|
||||||
|
# 10-digit developer team ID
|
||||||
|
# obtain this by running
|
||||||
|
#
|
||||||
|
# spctl -a -vv /Applications/BBEdit.app
|
||||||
|
#
|
||||||
|
# the team ID is the ten-digit ID at the end of the line starting with 'origin='
|
||||||
#
|
#
|
||||||
# - dmgName: (optional)
|
# - dmgName: (optional)
|
||||||
# The name of the downloaded dmg
|
# The name of the downloaded dmg
|
||||||
@@ -32,19 +40,20 @@ fi
|
|||||||
# When not given, the App name is derived from the dmgName by removing the extension
|
# When not given, the App name is derived from the dmgName by removing the extension
|
||||||
# and adding .app
|
# and adding .app
|
||||||
#
|
#
|
||||||
# - expectedTeamID:
|
# - targetDir: (optional)
|
||||||
# 10-digit developer team ID
|
# Applications will be copied to this directory, remember to omit trailing '/'
|
||||||
# obtain this by running
|
# default value is '/Applications'
|
||||||
#
|
|
||||||
# spctl -a -vv /Applications/BBEdit.app
|
|
||||||
#
|
|
||||||
# the team ID is the ten-digit ID at the end of the line starting with 'origin='
|
|
||||||
|
|
||||||
# target directory (remember to _omit_ last / )
|
|
||||||
targetDir="/Applications"
|
targetDir="/Applications"
|
||||||
# this can be overridden below if you want a different location for a specific identifier
|
|
||||||
|
|
||||||
|
|
||||||
|
# todos:
|
||||||
|
|
||||||
|
# TODO: add pkg support
|
||||||
|
# TODO: check for running processes and either abort or prompt user
|
||||||
|
# TODO: log version of installed software
|
||||||
|
# TODO: notification when done
|
||||||
|
|
||||||
# functions to help with getting info
|
# functions to help with getting info
|
||||||
|
|
||||||
downloadURLFromGit() { # $1 git user name, $2 git repo name
|
downloadURLFromGit() { # $1 git user name, $2 git repo name
|
||||||
@@ -61,7 +70,7 @@ downloadURLFromGit() { # $1 git user name, $2 git repo name
|
|||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
# add identifiers in this case statement
|
# identifiers in case statement
|
||||||
|
|
||||||
case $identifier in
|
case $identifier in
|
||||||
|
|
||||||
@@ -87,6 +96,8 @@ case $identifier in
|
|||||||
downloadURL="https://web.whatsapp.com/desktop/mac/files/WhatsApp.dmg"
|
downloadURL="https://web.whatsapp.com/desktop/mac/files/WhatsApp.dmg"
|
||||||
expectedTeamID="57T9237FN3"
|
expectedTeamID="57T9237FN3"
|
||||||
;;
|
;;
|
||||||
|
|
||||||
|
# these identifiers exist for testing
|
||||||
brokenDownloadURL)
|
brokenDownloadURL)
|
||||||
downloadURL="https://broken.com/broken.dmg"
|
downloadURL="https://broken.com/broken.dmg"
|
||||||
appName="Google Chrome.app"
|
appName="Google Chrome.app"
|
||||||
|
|||||||
Reference in New Issue
Block a user