aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGerald Combs <gerald@wireshark.org>2014-09-03 09:10:35 -0700
committerGerald Combs <gerald@wireshark.org>2014-09-03 16:21:47 +0000
commit4c0fed85220ec4aef6bd40475be38146706af464 (patch)
treed7559062fd9b35f1a14aefaa2ced573ffdfd6fd9
parentc1325e8378001c616e323e01ff90e5f53e208117 (diff)
Don't override the PA package naming convention. Use our full version in
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>
-rw-r--r--packaging/portableapps/win32/Makefile.nmake26
-rw-r--r--packaging/portableapps/win32/WiresharkPortable.ini3
-rwxr-xr-xpackaging/portableapps/win32/appinfo.tmpl2
3 files changed, 11 insertions, 20 deletions
diff --git a/packaging/portableapps/win32/Makefile.nmake b/packaging/portableapps/win32/Makefile.nmake
index 29c8f9c9d7..94aa19e350 100644
--- a/packaging/portableapps/win32/Makefile.nmake
+++ b/packaging/portableapps/win32/Makefile.nmake
@@ -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
diff --git a/packaging/portableapps/win32/WiresharkPortable.ini b/packaging/portableapps/win32/WiresharkPortable.ini
index b9ea785d0d..6fcf485f74 100644
--- a/packaging/portableapps/win32/WiresharkPortable.ini
+++ b/packaging/portableapps/win32/WiresharkPortable.ini
@@ -1,3 +1,4 @@
[Launch]
ProgramExecutable=Wireshark\Wireshark.exe
-WaitForProgram=false \ No newline at end of file
+WaitForProgram=false
+MinOS=Vista
diff --git a/packaging/portableapps/win32/appinfo.tmpl b/packaging/portableapps/win32/appinfo.tmpl
index 5234d74437..ef74ac58fd 100755
--- a/packaging/portableapps/win32/appinfo.tmpl
+++ b/packaging/portableapps/win32/appinfo.tmpl
@@ -20,7 +20,7 @@ CommercialUse=true
[Version]
PackageVersion=$(PAPPS_VERSION)
-DisplayVersion=$(VERSION_MAJOR).$(VERSION_MINOR).$(VERSION_MICRO)
+DisplayVersion=$(VERSION)
[Control]
Icons=1