Skip to content

Wireshark appNewVersion URL needs to change #1195

@gabemarcelino

Description

@gabemarcelino

Looks like Wireshark change the XML in there sparkle: https://www.wireshark.org/update/0/Wireshark/4.0.0/macOS/x86-64/en-US/stable.xml and the download link doesn't have latest version anymore I created the fix:

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" | xmllint --xpath '//item/title/text()' - | awk '{print $2}')
    if [[ $(arch) == i386 ]]; then
      downloadURL="https://2.na.dl.wireshark.org/osx/Wireshark%20$appNewVersion%20Intel%2064.dmg"
    elif [[ $(arch) == arm64 ]]; then
      downloadURL="https://2.na.dl.wireshark.org/osx/Wireshark%20$appNewVersion%20Arm%2064.dmg"
    fi
    expectedTeamID="7Z6EMTD2C6"
    ;;

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions