Skip to content

Commit

Permalink
new label: virtualbox
Browse files Browse the repository at this point in the history
  • Loading branch information
scriptingosx committed Feb 24, 2023
2 parents e751a90 + a1c63c0 commit 399fe01
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions fragments/labels/virtualbox.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,12 @@ virtualbox)
name="VirtualBox"
type="pkgInDmg"
pkgName="VirtualBox.pkg"
downloadURL=$(curl -fs "https://www.virtualbox.org/wiki/Downloads" \
| awk -F '"' "/OSX.dmg/ { print \$4 }")
appNewVersion=$(curl -fs "https://www.virtualbox.org/wiki/Downloads" | awk -F '"' "/OSX.dmg/ { print \$4 }" | sed -E 's/.*virtualbox\/([0-9.]*)\/.*/\1/')
if [[ $(arch) == i386 ]]; then
platform="OSX"
elif [[ $(arch) == arm64 ]]; then
platform="macOSArm64"
fi
downloadURL=$(curl -fs "https://www.virtualbox.org/wiki/Downloads" | awk -F '"' "/$platform.dmg/ { print \$4 }")
appNewVersion=$(curl -fs "https://www.virtualbox.org/wiki/Downloads" | awk -F '"' "/$platform.dmg/ { print \$4 }" | sed -E 's/.*virtualbox\/([0-9.]*)\/.*/\1/')
expectedTeamID="VB5E2TV963"
;;

0 comments on commit 399fe01

Please sign in to comment.