Skip to content

Commit

Permalink
label: wireshark, see 1034
Browse files Browse the repository at this point in the history
  • Loading branch information
scriptingosx committed May 26, 2023
2 parents b05f814 + 708d412 commit d9b0237
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions fragments/labels/wireshark.sh
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
wireshark)
name="Wireshark"
type="dmg"
appNewVersion=$(curl -fs "https://www.wireshark.org/update/0/Wireshark/4.0.0/macOS/x86-64/en-US/stable.xml" | xpath '(//rss/channel/item/enclosure/@sparkle:version)[1]' 2>/dev/null | head -1 | cut -d '"' -f 2)
appNewVersion=$(curl -fs "https://www.wireshark.org/update/0/Wireshark/4.0.0/macOS/x86-64/en-US/stable.xml" | xmllint --xpath '/rss/channel/item/enclosure/@url' - | head -1 | cut -d '"' -f 2)
urlToParse=$(curl -fs "https://www.wireshark.org/update/0/Wireshark/4.0.0/macOS/x86-64/en-US/stable.xml" | xmllint --xpath '/rss/channel/item/enclosure/@url' - | head -1 | cut -d ':' -f 2 | cut -d '%' -f 1)
if [[ $(arch) == i386 ]]; then
downloadURL="https://1.as.dl.wireshark.org/osx/Wireshark%20Latest%20Intel%2064.dmg"
downloadURL="https:$urlToParse%20Latest%20Intel%2064.dmg"
elif [[ $(arch) == arm64 ]]; then
downloadURL="https://1.as.dl.wireshark.org/osx/Wireshark%20Latest%20Arm%2064.dmg"
downloadURL="https:$urlToParse%20Latest%20Arm%2064.dmg"
fi
expectedTeamID="7Z6EMTD2C6"
;;

0 comments on commit d9b0237

Please sign in to comment.