From: Daniel Elstner Date: Sat, 3 Oct 2015 15:51:00 +0000 (+0200) Subject: windows: Install data files into share subdirectory X-Git-Tag: pulseview-0.3.0~103 X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=a7e53a4a73d5775589b8f1336a1f2feec7a60488;p=pulseview.git windows: Install data files into share subdirectory This allows these files to be found on standard paths relative to the location of the executable. --- diff --git a/contrib/pulseview_cross.nsi.in b/contrib/pulseview_cross.nsi.in index 576cfca6..6c0475cb 100644 --- a/contrib/pulseview_cross.nsi.in +++ b/contrib/pulseview_cross.nsi.in @@ -132,13 +132,13 @@ Section "PulseView (required)" Section1 File "${CROSS}/python32.dll" File "${CROSS}/python32.zip" + SetOutPath "$INSTDIR\share" + # Protocol decoders. - SetOutPath "$INSTDIR\decoders" - File /r /x "__pycache__" "${CROSS}/share/libsigrokdecode/decoders/*" + File /r /x "__pycache__" /x "*.pyc" "${CROSS}/share/libsigrokdecode" # Firmware files. - SetOutPath "$INSTDIR\firmware" - File /r "${CROSS}/share/sigrok-firmware/*" + File /r "${CROSS}/share/sigrok-firmware" # Example *.sr files. SetOutPath "$INSTDIR\examples" @@ -214,19 +214,18 @@ Section "Uninstall" Delete "$INSTDIR\python32.dll" Delete "$INSTDIR\python32.zip" - # Delete all decoders and everything else in decoders/. + # Delete all decoders and everything else in libsigrokdecode/. # There could be *.pyc files or __pycache__ subdirs and so on. - RMDir /r "$INSTDIR\decoders\*" + RMDir /r "$INSTDIR\share\libsigrokdecode" # Delete the firmware files. - RMDir /r "$INSTDIR\firmware\*" + RMDir /r "$INSTDIR\share\sigrok-firmware" # Delete the example *.sr files. RMDir /r "$INSTDIR\examples\*" # Delete the install directory and its sub-directories. - RMDir "$INSTDIR\decoders" - RMDir "$INSTDIR\firmware" + RMDir "$INSTDIR\share" RMDir "$INSTDIR\examples" RMDir "$INSTDIR"