Wireshark-commits: [Wireshark-commits] master-3.0 1bad0b1: macOS: Replace Wireshark.app when upgrad

From: Wireshark code review <code-review-do-not-reply@xxxxxxxxxxxxx>
Date: Fri, 22 Feb 2019 19:36:37 +0000
URL: https://code.wireshark.org/review/gitweb?p=wireshark.git;a=commit;h=1bad0b1368097c60d30aadb38402311431a2eb47
Submitter: "Gerald Combs <gerald@xxxxxxxxxxxxx>"
Changed: branch: master-3.0
Repository: wireshark

Commits:

1bad0b1 by Gerald Combs (gerald@xxxxxxxxxxxxx):

    macOS: Replace Wireshark.app when upgrading.
    
    The packages that PackageMaker creates don't remove old files when
    upgrading. Add a preflight script that removes Wireshark.app if it
    exists.
    
    Fix a version check while we're here.
    
    Change-Id: I8be8cbf51b34fef8a2d4259478b7d3199d976de3
    Reviewed-on: https://code.wireshark.org/review/32150
    Reviewed-by: Gerald Combs <gerald@xxxxxxxxxxxxx>
    (cherry picked from commit 7c788957360ba6f92d9ecd2fbd4b239b9b7847ae)
    Reviewed-on: https://code.wireshark.org/review/32151
    

Actions performed:

    from  facd958   Release notes: Add notes about the macOS package.
     add  1bad0b1   macOS: Replace Wireshark.app when upgrading.


Summary of changes:
 packaging/macosx/Scripts/wireshark-postinstall.sh     | 19 -------------------
 packaging/macosx/Scripts/wireshark-preflight.sh       | 13 +++++++++++++
 .../macosx/Wireshark_package.pmdoc/01wireshark.xml    |  2 +-
 packaging/macosx/Wireshark_package.pmdoc/index.xml.in |  2 +-
 4 files changed, 15 insertions(+), 21 deletions(-)
 create mode 100755 packaging/macosx/Scripts/wireshark-preflight.sh