!define WEBSITE "www.wireshark.org"
!define DEFAULTEXE "wireshark.exe"
!define DEFAULTAPPDIR "Wireshark"
-!define DEFAULTWINPCAP "WinPcap_4_1_beta5.exe"
-!define DEFAULTMSVCREDIST "vcredist_x86.exe"
!addplugindir "${EXTRA_PLUGINS}"
AdditionalParameters=
DisableWinPcapInstall=false
-WinPcapInstaller=WinPcap_4_1_beta5.exe
+WinPcapInstaller=WinPcap_$(PCAP_VERSION).exe
-MSVCRedist=vcredist_x86.exe
+MSVCRedist=vcredist_$(TARGET_MACHINE).exe
# This INI is an example only and will not work until placed according to the directions in readme.txt
# The above options are explained in the included readme.txt
-e 's/$$(VERSION_MINOR)/$(VERSION_MINOR)/g' \
< appinfo.tmpl > appinfo.ini
+WiresharkPortable.ini: WiresharkPortable.tmpl $(TOPDIR)\config.nmake
+ sed -e 's/$$(PCAP_VERSION)/$(PCAP_VERSION)/g' \
+ -e 's/$$(TARGET_MACHINE)/$(TARGET_MACHINE)/g' \
+ < WiresharkPortable.tmpl > WiresharkPortable.ini
+
appinfo: appinfo.ini
$(COPY) appinfo.ini $(FILES)\$(APP)\$(APPINFO) $(COPY_FLAGS)
$(COPY) $(TOPDIR)\image\wireshark.ico $(FILES)\$(APP)\$(APPINFO) $(COPY_FLAGS)
-source:
+source: WiresharkPortable.ini
$(COPY) WiresharkPortable.ini $(FILES)\$(OTHER)\$(SOURCE) $(COPY_FLAGS)
+ $(COPY) readme.txt $(FILES)\$(OTHER)\$(SOURCE) $(COPY_FLAGS)
$(COPY) WiresharkPortable.nsi $(FILES)\$(OTHER)\$(SOURCE) $(COPY_FLAGS)
$(COPY) Installer.nsi $(FILES)\$(OTHER)\$(SOURCE) $(COPY_FLAGS)
$(MAKENSIS) \
/DVERSION=$(PAPPS_VERSION) \
/DWSVERSION=$(VERSION) \
+ /DDEFAULTWINPCAP=WinPcap_$(PCAP_VERSION).exe \
+ /DDEFAULTMSVCREDIST=vcredist_$(TARGET_MACHINE).exe \
/DEXTRA_PLUGINS="$(WIRESHARK_LIBS)\$(NSIS_PLUGINS)" \
Installer.nsi
cd portableapps/win32
rm -rf $(FILES)
rm -rf appinfo.ini
+ rm -rf WiresharkPortable.ini
rm -rf distribution.nmake
rm -rf WiresharkPortable-$(VERSION).paf.exe
rm -rf *~ *.*~