mirror of
https://github.com/mtan93/Installomator.git
synced 2026-03-08 05:31:53 +00:00
added Whatsapp, now automatically derives appName
This commit is contained in:
@@ -23,8 +23,14 @@ fi
|
||||
# - downloadURL:
|
||||
# URL to download the dmg
|
||||
#
|
||||
# - appName:
|
||||
# - dmgName: (optional)
|
||||
# The name of the downloaded dmg
|
||||
# When not given the dmgName is derived from the last part of the downloadURL
|
||||
#
|
||||
# - appName: (optional)
|
||||
# file name of the app bundle in the dmg to verify and copy (include .app)
|
||||
# When not given, the App name is derived from the dmgName by removing the extension
|
||||
# and adding .app
|
||||
#
|
||||
# - expectedTeamID:
|
||||
# 10-digit developer team ID
|
||||
@@ -66,20 +72,21 @@ case $identifier in
|
||||
;;
|
||||
Spotify)
|
||||
downloadURL="https://download.scdn.co/Spotify.dmg"
|
||||
appName="Spotify.app"
|
||||
expectedTeamID="2FNC3A47ZF"
|
||||
;;
|
||||
BBEdit)
|
||||
downloadURL=$(curl -s https://versioncheck.barebones.com/BBEdit.xml | grep dmg | sort | tail -n1 | cut -d">" -f2 | cut -d"<" -f1)
|
||||
appName="BBEdit.app"
|
||||
expectedTeamID="W52GZAXT98"
|
||||
;;
|
||||
Firefox)
|
||||
downloadURL="https://download.mozilla.org/?product=firefox-latest&os=osx&lang=en-US"
|
||||
dmgName="Firefox.dmg"
|
||||
appName="Firefox.app"
|
||||
expectedTeamID="43AQ936H96"
|
||||
;;
|
||||
WhatsApp)
|
||||
downloadURL="https://web.whatsapp.com/desktop/mac/files/WhatsApp.dmg"
|
||||
expectedTeamID="57T9237FN3"
|
||||
;;
|
||||
brokenDownloadURL)
|
||||
downloadURL="https://broken.com/broken.dmg"
|
||||
appName="Google Chrome.app"
|
||||
@@ -106,6 +113,10 @@ if [ -z "$dmgName" ]; then
|
||||
dmgName="${downloadURL##*/}"
|
||||
fi
|
||||
|
||||
if [ -z "$appName" ]; then
|
||||
appName="${dmgName%%.*}.app"
|
||||
fi
|
||||
|
||||
cleanupAndExit() { # $1 = exit code
|
||||
if [ "$DEBUG" -eq 0 ]; then
|
||||
# remove the temporary working directory when done
|
||||
|
||||
Reference in New Issue
Block a user