Don't override the PA package naming convention. Use our full version in
authorGerald Combs <gerald@wireshark.org>
Wed, 3 Sep 2014 16:10:35 +0000 (09:10 -0700)
committerGerald Combs <gerald@wireshark.org>
Wed, 3 Sep 2014 16:21:47 +0000 (16:21 +0000)
the package name. Set a minimum OS version (Vista). Update some comments.

Change-Id: I28096276d2588993136b008a307dbcc7983496b0
Reviewed-on: https://code.wireshark.org/review/3974
Reviewed-by: Gerald Combs <gerald@wireshark.org>
packaging/portableapps/win32/Makefile.nmake
packaging/portableapps/win32/WiresharkPortable.ini
packaging/portableapps/win32/appinfo.tmpl

index 29c8f9c9d71a3d5d0a0ae9c8cbc8a59e48362a43..94aa19e3505f914c22b13b72c20ecd5672647f8a 100644 (file)
@@ -44,22 +44,14 @@ NEED_QT5_DLL        = USE
 NEED_QT4_DLL   = USE
 !ENDIF
 
-#wireshark.nsi: qt-dll-manifest.nsh
-#qt-dll-manifest.nsh: windeployqt-to-nsis.ps1 Makefile.nmake
-#!IF EXIST("$(QT5_BASE_DIR)\bin\qmake.exe")
-#      set PATH=%PATH%;$(QT5_BASE_DIR)\bin
-#!ENDIF
-#      $(POWERSHELL) windeployqt-to-nsis.ps1 \
-#              -Executable ..\..\wireshark-qt-release\wireshark.exe \
-#              -FilePath $@
-
 UPX_FLAGS = -q
 
 PAPPS_VERSION=$(VERSION_MAJOR).$(VERSION_MINOR).$(VERSION_MICRO).0
+PAPPS_PACKAGE=$(PROGRAM_PORTABLE)-$(VERSION).paf.exe
 
 all: package
 
-package: $(PROGRAM_PORTABLE)-$(VERSION).paf.exe
+package: $(PAPPS_PACKAGE)
 
 dirs:
        if not exist $(STAGING_DIR) $(MKDIR) $(STAGING_DIR)
@@ -71,6 +63,8 @@ dirs:
        if not exist $(OTHER) $(MKDIR) $(OTHER)
        if not exist $(SOURCE) $(MKDIR) $(SOURCE)
 
+# XXX - Figure out how to use the PA AppCompactor non-interactively and
+# use it instead.
 #pack: distribution
 #!IFDEF UPX
 #      -$(UPX) $(UPX_FLAGS) $(FILES)\$(APP)\$(WIRESHARK)\[a-z]*.exe
@@ -83,9 +77,7 @@ dirs:
 
 $(APPINFO_INI): dirs appinfo.tmpl $(TOPDIR)\config.nmake
        sed -e 's/$$(PAPPS_VERSION)/$(PAPPS_VERSION)/g' \
-           -e 's/$$(VERSION_MAJOR)/$(VERSION_MAJOR)/g' \
-           -e 's/$$(VERSION_MINOR)/$(VERSION_MINOR)/g' \
-           -e 's/$$(VERSION_MICRO)/$(VERSION_MICRO)/g' \
+           -e 's/$$(VERSION)/$(VERSION)/g' \
        < appinfo.tmpl > $@
 
 $(LAUNCHER_INI): dirs $(PROGRAM_PORTABLE).ini
@@ -125,12 +117,10 @@ source: dirs
                 $(TOPDIR)/NEWS \
                 $(TOPDIR)/README.windows
 
-WiresharkPortable-$(VERSION).paf.exe : dirs appinfo appbinaries source
+$(PAPPS_PACKAGE) : dirs appinfo appbinaries source
 !IFDEF PORTABLEAPPS_DIR
        $(PORTABLEAPPS_DIR)\PortableApps.comInstaller\PortableApps.comInstaller.exe \
                $(MAKEDIR)\$(PROGRAM_PORTABLE)
-       mv WiresharkPortable_$(VERSION_MAJOR).$(VERSION_MINOR).$(VERSION_MICRO).paf.exe \
-               WiresharkPortable-$(VERSION_MAJOR).$(VERSION_MINOR).$(VERSION_MICRO).paf.exe
 !ELSE
 !MESSAGE PORTABLEAPPS_DIR not configured in config.nmake. Skipping.
 !ENDIF
@@ -141,10 +131,10 @@ clean:
        cd portableapps/win32
        rm -rf $(STAGING_DIR)
        rm -rf appinfo.ini
-       rm -rf WiresharkPortable-$(VERSION).paf.exe
+       rm -rf $(PAPPS_PACKAGE)
        rm -rf *~ *.*~
 
 distclean:     clean
-       rm -rf WiresharkPortable-*.paf.exe
+       rm -rf WiresharkPortable*.paf.exe
 
 maintainer-clean:      distclean
index b9ea785d0d23b9bae47af2aea77093234ee16bc2..6fcf485f744b796f7abafa7ba8d6f2d75785e19b 100644 (file)
@@ -1,3 +1,4 @@
 [Launch]
 ProgramExecutable=Wireshark\Wireshark.exe
-WaitForProgram=false
\ No newline at end of file
+WaitForProgram=false
+MinOS=Vista
index 5234d744370e61dc9b837c714d102640e9b4f3ac..ef74ac58fdf9c395e2ae3ddbb15ba2c541eed4be 100755 (executable)
@@ -20,7 +20,7 @@ CommercialUse=true
 
 [Version]
 PackageVersion=$(PAPPS_VERSION)
-DisplayVersion=$(VERSION_MAJOR).$(VERSION_MINOR).$(VERSION_MICRO)
+DisplayVersion=$(VERSION)
 
 [Control]
 Icons=1