From 63ddb9d2e7a69e0ed79734e44527ec1ddb600d22 Mon Sep 17 00:00:00 2001 From: theadamcraig Date: Mon, 2 May 2022 13:00:30 -0400 Subject: [PATCH] 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. --- fragments/labels/bluejeanswithaudiodriver.sh | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 fragments/labels/bluejeanswithaudiodriver.sh diff --git a/fragments/labels/bluejeanswithaudiodriver.sh b/fragments/labels/bluejeanswithaudiodriver.sh new file mode 100644 index 0000000..d210af1 --- /dev/null +++ b/fragments/labels/bluejeanswithaudiodriver.sh @@ -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='attributeSetting1choiceAttributeselectedchoiceIdentifiercom.tatvikmohit.BlueJeans-Audio' + expectedTeamID="HE4P42JBGN" + ;;