mirror of
https://github.com/mtan93/Installomator.git
synced 2026-03-08 05:31:53 +00:00
Create bluejeanswithaudiodriver.sh
the exact same as the bluejeans label, but with a new variable choiceChangesXML this allows the package to be customized on installation which in this instance will have the BlueJeans Audio Driver installed with the software.
This commit is contained in:
12
fragments/labels/bluejeanswithaudiodriver.sh
Normal file
12
fragments/labels/bluejeanswithaudiodriver.sh
Normal file
@@ -0,0 +1,12 @@
|
||||
bluejeanswithaudiodriver)
|
||||
name="BlueJeans"
|
||||
type="pkg"
|
||||
if [[ $(arch) == "arm64" ]]; then
|
||||
downloadURL=$(curl -fs "https://www.bluejeans.com/downloads" | xmllint --html --format - 2>/dev/null | grep -o "https://.*BlueJeans.*Installer.*arm.*.pkg" )
|
||||
elif [[ $(arch) == "i386" ]]; then
|
||||
downloadURL=$(curl -fs "https://www.bluejeans.com/downloads" | xmllint --html --format - 2>/dev/null | grep -o "https://.*BlueJeansInstaller.*x86.*.dmg" | sed 's/dmg/pkg/g')
|
||||
fi
|
||||
appNewVersion=$(echo $downloadURL | cut -d '/' -f6)
|
||||
choiceChangesXML='<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"><plist version="1.0"><array><dict><key>attributeSetting</key><integer>1</integer><key>choiceAttribute</key><string>selected</string><key>choiceIdentifier</key><string>com.tatvikmohit.BlueJeans-Audio</string></dict></array></plist>'
|
||||
expectedTeamID="HE4P42JBGN"
|
||||
;;
|
||||
Reference in New Issue
Block a user