diff --git a/fragments/labels/sfsymbols.sh b/fragments/labels/applesfsymbols.sh similarity index 87% rename from fragments/labels/sfsymbols.sh rename to fragments/labels/applesfsymbols.sh index bb63520..f90150b 100644 --- a/fragments/labels/sfsymbols.sh +++ b/fragments/labels/applesfsymbols.sh @@ -1,6 +1,7 @@ +applesfsymbols|\ sfsymbols) name="SF Symbols" type="pkgInDmg" downloadURL="https://developer.apple.com/design/downloads/SF-Symbols.dmg" expectedTeamID="Software Update" - ;; + ;; \ No newline at end of file diff --git a/fragments/labels/boxsync.sh b/fragments/labels/boxsync.sh new file mode 100644 index 0000000..9962e3f --- /dev/null +++ b/fragments/labels/boxsync.sh @@ -0,0 +1,6 @@ +boxsync) + name="Box Sync" + type="dmg" + downloadURL="https://e3.boxcdn.net/box-installers/sync/Sync+4+External/Box%20Sync%20Installer.dmg" + expectedTeamID="M683GB7CPW" + ;; \ No newline at end of file diff --git a/fragments/labels/boxtools.sh b/fragments/labels/boxtools.sh index 248dd3e..2963c68 100644 --- a/fragments/labels/boxtools.sh +++ b/fragments/labels/boxtools.sh @@ -1,6 +1,6 @@ boxtools) - name="Box Tools" - type="pkg" - downloadURL="https://box-installers.s3.amazonaws.com/boxedit/mac/currentrelease/BoxToolsInstaller.pkg" - expectedTeamID="M683GB7CPW" - ;; \ No newline at end of file + name="Box Tools" + type="pkg" + downloadURL="https://box-installers.s3.amazonaws.com/boxedit/mac/currentrelease/BoxToolsInstaller.pkg" + expectedTeamID="M683GB7CPW" + ;; \ No newline at end of file diff --git a/fragments/labels/colourcontrastanalyser.sh b/fragments/labels/colourcontrastanalyser.sh index 6cc0d84..613ccba 100644 --- a/fragments/labels/colourcontrastanalyser.sh +++ b/fragments/labels/colourcontrastanalyser.sh @@ -1,8 +1,8 @@ colourcontrastanalyser) - name="Colour Contrast Analyser (CCA)" - type="dmg" - downloadURL=$(downloadURLFromGit ThePacielloGroup CCAe) - appNewVersion=$(versionFromGit ThePacielloGroup CCAe) - expectedTeamID="34RS4UC3M6" - blockingProcesses=( NONE ) - ;; \ No newline at end of file + name="Colour Contrast Analyser (CCA)" + type="dmg" + downloadURL=$(downloadURLFromGit ThePacielloGroup CCAe) + appNewVersion=$(versionFromGit ThePacielloGroup CCAe) + expectedTeamID="34RS4UC3M6" + blockingProcesses=( NONE ) + ;; \ No newline at end of file diff --git a/fragments/labels/craftmanager.sh b/fragments/labels/craftmanager.sh new file mode 100644 index 0000000..6906ad6 --- /dev/null +++ b/fragments/labels/craftmanager.sh @@ -0,0 +1,8 @@ +craftmanager) + name="CraftManager" + type="zip" + #downloadURL="https://craft-assets.invisionapp.com/CraftManager/production/CraftManager.zip" + downloadURL="$(curl -fs https://craft-assets.invisionapp.com/CraftManager/production/appcast.xml | xpath '(//rss/channel/item/enclosure/@url)[1]' 2>/dev/null | head -1 | cut -d '"' -f 2)" + appNewVersion="$(curl -fs https://craft-assets.invisionapp.com/CraftManager/production/appcast.xml | xpath '(//rss/channel/item/enclosure/@sparkle:shortVersionString)[1]' 2>/dev/null | head -1 | cut -d '"' -f 2)" + expectedTeamID="VRXQSNCL5W" + ;; \ No newline at end of file diff --git a/fragments/labels/insomnia.sh b/fragments/labels/insomnia.sh new file mode 100644 index 0000000..6d8922a --- /dev/null +++ b/fragments/labels/insomnia.sh @@ -0,0 +1,7 @@ +insomnia) + name="insomnia" + type="dmg" + downloadURL=$(downloadURLFromGit kong insomnia) + appNewVersion=$(versionFromGit kong insomnia) + expectedTeamID="FX44YY62GV" + ;; \ No newline at end of file diff --git a/fragments/labels/jetbrainsdatagrip.sh b/fragments/labels/jetbrainsdatagrip.sh index eeae78d..87a77f3 100644 --- a/fragments/labels/jetbrainsdatagrip.sh +++ b/fragments/labels/jetbrainsdatagrip.sh @@ -1,12 +1,11 @@ jetbrainsdatagrip) - # credit: AP Orlebeke (@apizz) - name="DataGrip" - type="dmg" - appNewVersion=$(curl -fs "https://data.services.jetbrains.com/products/releases?code=DG&latest=true&type=release" | grep -o 'version*.*,' | cut -d '"' -f3) - if [[ $(arch) == "arm64" ]]; then - downloadURL=$(curl -fs "https://data.services.jetbrains.com/products/releases?code=DG&latest=true&type=release" | grep -o 'macM1*.*,' | cut -d '"' -f5) - elif [[ $(arch) == "i386" ]]; then - downloadURL=$(curl -fs "https://data.services.jetbrains.com/products/releases?code=DG&latest=true&type=release" | grep -o 'mac*.*,' | cut -d '"' -f5) - fi - expectedTeamID="2ZEFAR8TH3" - ;; \ No newline at end of file + name="DataGrip" + type="dmg" + appNewVersion=$(curl -fs "https://data.services.jetbrains.com/products/releases?code=DG&latest=true&type=release" | grep -o 'version*.*,' | cut -d '"' -f3) + if [[ $(arch) == "arm64" ]]; then + downloadURL=$(curl -fs "https://data.services.jetbrains.com/products/releases?code=DG&latest=true&type=release" | grep -o 'macM1*.*,' | cut -d '"' -f5) + elif [[ $(arch) == "i386" ]]; then + downloadURL=$(curl -fs "https://data.services.jetbrains.com/products/releases?code=DG&latest=true&type=release" | grep -o 'mac*.*,' | cut -d '"' -f5) + fi + expectedTeamID="2ZEFAR8TH3" + ;; \ No newline at end of file diff --git a/fragments/labels/jetbrainstoolbox.sh b/fragments/labels/jetbrainstoolbox.sh new file mode 100644 index 0000000..16bef78 --- /dev/null +++ b/fragments/labels/jetbrainstoolbox.sh @@ -0,0 +1,11 @@ +jetbrainstoolbox) + name="JetBrains Toolbox" + type="dmg" + if [[ $(arch) == i386 ]]; then + downloadURL="https://download.jetbrains.com/product?code=TB&latest&distribution=mac" + elif [[ $(arch) == arm64 ]]; then + downloadURL="https://download.jetbrains.com/product?code=TB&latest&distribution=macM1" + fi + appNewVersion=$( curl -fsIL "${downloadURL}" | grep -i "location" | tail -1 | sed -E 's/.*\/[a-zA-Z-]*-([0-9.]*).*[-.].*dmg/\1/g' ) + expectedTeamID="2ZEFAR8TH3" + ;; \ No newline at end of file diff --git a/fragments/labels/muzzle.sh b/fragments/labels/muzzle.sh new file mode 100644 index 0000000..76091f7 --- /dev/null +++ b/fragments/labels/muzzle.sh @@ -0,0 +1,7 @@ +muzzle) + name="Muzzle" + type="zip" + downloadURL="https://muzzleapp.com/binaries/muzzle.zip" + appNewVersion=$(curl -fs https://muzzleapp.com/updates/ | grep -io 'h2.*Version.* [0-9.]*.*h2' | head -1 | sed -E 's/.*ersion *([0-9.]*).*/\1/g') + expectedTeamID="49EYHPJ4Q3" + ;; \ No newline at end of file diff --git a/fragments/labels/platypus.sh b/fragments/labels/platypus.sh index 96d0394..62e2f41 100644 --- a/fragments/labels/platypus.sh +++ b/fragments/labels/platypus.sh @@ -1,7 +1,7 @@ platypus) - name="Platypus" - type="zip" - downloadURL=$(downloadURLFromGit sveinbjornt Platypus) - appNewVersion=$(versionFromGit sveinbjornt Platypus) - expectedTeamID="55GP2M789L" - ;; \ No newline at end of file + name="Platypus" + type="zip" + downloadURL=$(downloadURLFromGit sveinbjornt Platypus) + appNewVersion=$(versionFromGit sveinbjornt Platypus) + expectedTeamID="55GP2M789L" + ;; \ No newline at end of file diff --git a/fragments/labels/scaleft.sh b/fragments/labels/scaleft.sh index 295469d..5ce3448 100644 --- a/fragments/labels/scaleft.sh +++ b/fragments/labels/scaleft.sh @@ -1,8 +1,8 @@ scaleft) - name="ScaleFT" - type="pkg" - downloadURL="https://dist.scaleft.com/client-tools/mac/latest/ScaleFT.pkg" - appNewVersion=$(curl -sf "https://dist.scaleft.com/client-tools/mac/" | awk '/dir/{i++}i==2' | sed -nre 's/^[^0-9]*(([0-9]+\.)*[0-9]+).*/\1/p') - expectedTeamID="HV2G9Z3RP5" - blockingProcesses=( ScaleFT ) - ;; \ No newline at end of file + name="ScaleFT" + type="pkg" + downloadURL="https://dist.scaleft.com/client-tools/mac/latest/ScaleFT.pkg" + appNewVersion=$(curl -sf "https://dist.scaleft.com/client-tools/mac/" | awk '/dir/{i++}i==2' | sed -nre 's/^[^0-9]*(([0-9]+\.)*[0-9]+).*/\1/p') + expectedTeamID="HV2G9Z3RP5" + blockingProcesses=( ScaleFT ) + ;; diff --git a/fragments/labels/webexteams.sh b/fragments/labels/webexteams.sh deleted file mode 100644 index 2e9ca34..0000000 --- a/fragments/labels/webexteams.sh +++ /dev/null @@ -1,7 +0,0 @@ -webexteams) - # credit: Erik Stam (@erikstam) - name="Webex Teams" - type="dmg" - downloadURL="https://binaries.webex.com/WebexTeamsDesktop-MACOS-Gold/WebexTeams.dmg" - expectedTeamID="DE8Y96K9QP" - ;; diff --git a/fragments/labels/zulujdk8.sh b/fragments/labels/zulujdk8.sh index 56566d4..5581ffa 100644 --- a/fragments/labels/zulujdk8.sh +++ b/fragments/labels/zulujdk8.sh @@ -1,13 +1,13 @@ zulujdk8) - name="Zulu JDK 8" - type="pkgInDmg" - packageID="com.azulsystems.zulu.8" - if [[ $(arch) == i386 ]]; then - downloadURL=https://cdn.azul.com/zulu/bin/$(curl -fs "https://cdn.azul.com/zulu/bin/" | grep -Eio '">zulu8.*ca-jdk8.*x64.dmg(.*)' | cut -c3- | sed 's/<\/a>//' | sed -E 's/([0-9.]*)M//' | awk '{print $2 $1}' | sort | cut -c11- | tail -1) - elif [[ $(arch) == arm64 ]]; then - downloadURL=https://cdn.azul.com/zulu/bin/$(curl -fs "https://cdn.azul.com/zulu/bin/" | grep -Eio '">zulu8.*ca-jdk8.*aarch64.dmg(.*)' | cut -c3- | sed 's/<\/a>//' | sed -E 's/([0-9.]*)M//' | awk '{print $2 $1}' | sort | cut -c11- | tail -1) - fi - expectedTeamID="TDTHCUPYFR" - appCustomVersion(){ if [ -f "/Library/Java/JavaVirtualMachines/zulu-8.jdk/Contents/Info.plist" ]; then /usr/bin/defaults read "/Library/Java/JavaVirtualMachines/zulu-8.jdk/Contents/Info.plist" "CFBundleName" | sed 's/Zulu //'; fi } - appNewVersion=$(echo "$downloadURL" | cut -d "-" -f 1 | sed -e "s/.*zulu//") # Cannot be compared to anything - ;; + name="Zulu JDK 8" + type="pkgInDmg" + packageID="com.azulsystems.zulu.8" + if [[ $(arch) == i386 ]]; then + downloadURL=https://cdn.azul.com/zulu/bin/$(curl -fs "https://cdn.azul.com/zulu/bin/" | grep -Eio '">zulu8.*ca-jdk8.*x64.dmg(.*)' | cut -c3- | sed 's/<\/a>//' | sed -E 's/([0-9.]*)M//' | awk '{print $2 $1}' | sort | cut -c11- | tail -1) + elif [[ $(arch) == arm64 ]]; then + downloadURL=https://cdn.azul.com/zulu/bin/$(curl -fs "https://cdn.azul.com/zulu/bin/" | grep -Eio '">zulu8.*ca-jdk8.*aarch64.dmg(.*)' | cut -c3- | sed 's/<\/a>//' | sed -E 's/([0-9.]*)M//' | awk '{print $2 $1}' | sort | cut -c11- | tail -1) + fi + expectedTeamID="TDTHCUPYFR" + appCustomVersion(){ if [ -f "/Library/Java/JavaVirtualMachines/zulu-8.jdk/Contents/Info.plist" ]; then /usr/bin/defaults read "/Library/Java/JavaVirtualMachines/zulu-8.jdk/Contents/Info.plist" "CFBundleName" | sed 's/Zulu //'; fi } + appNewVersion=$(echo "$downloadURL" | cut -d "-" -f 1 | sed -e "s/.*zulu//") # Cannot be compared to anything + ;; \ No newline at end of file