X-Git-Url: https://sigrok.org/gitweb/?p=sigrok-cli.git;a=blobdiff_plain;f=contrib%2Fsigrok-cli_cross.nsi.in;h=6156ea93e4b0bca4cd2af278f2d4b31ad4d4fcc7;hp=7a9ec7eaf1a8e6c6529e768277f693a982ece1b7;hb=a5396d7bf2d01964b77d714cfcfbcacc641be92a;hpb=6ffb657795f2c4115a7483580c80f27f8d60d4ec diff --git a/contrib/sigrok-cli_cross.nsi.in b/contrib/sigrok-cli_cross.nsi.in index 7a9ec7e..6156ea9 100644 --- a/contrib/sigrok-cli_cross.nsi.in +++ b/contrib/sigrok-cli_cross.nsi.in @@ -38,7 +38,7 @@ Name "@PACKAGE_NAME@" # Filename of the installer executable. -OutFile "@PACKAGE_NAME@-@PACKAGE_VERSION@-installer.exe" +OutFile "@PACKAGE_NAME@-@SC_PACKAGE_VERSION@-installer.exe" # Where to install the application. InstallDir "$PROGRAMFILES\sigrok\@PACKAGE_NAME@" @@ -54,7 +54,7 @@ RequestExecutionLevel admin # --- MUI interface configuration --------------------------------------------- # Use the following icon for the installer EXE file. -!define MUI_ICON "sigrok-logo-notext.ico" +!define MUI_ICON "@top_srcdir@/contrib/sigrok-logo-notext.ico" # Show a nice image at the top of each installer page. !define MUI_HEADERIMAGE @@ -72,11 +72,7 @@ RequestExecutionLevel admin # Path where the cross-compiled sigrok tools and libraries are located. # Change this to where-ever you installed libsigrok.a and so on. -!define CROSS "$%HOME%/sr_mingw" - -# Path where the cross-compiled MXE tools and libraries are located. -# Change this to where-ever you installed MXE (and the files it built). -!define MXE "$%HOME%/mxe-git/usr/i686-pc-mingw32" +!define CROSS "@prefix@" # --- MUI pages --------------------------------------------------------------- @@ -85,7 +81,7 @@ RequestExecutionLevel admin !insertmacro MUI_PAGE_WELCOME # Show the license of the project. -!insertmacro MUI_PAGE_LICENSE "../COPYING" +!insertmacro MUI_PAGE_LICENSE "@top_srcdir@/COPYING" # Show a screen which allows the user to select which components to install. !insertmacro MUI_PAGE_COMPONENTS @@ -123,7 +119,7 @@ Section "@PACKAGE_NAME@ (required)" Section1 SetOutPath "$INSTDIR" # License file. - File "../COPYING" + File "@top_srcdir@/COPYING" # sigrok-cli.exe. File "${CROSS}/bin/@PACKAGE_NAME@.exe" @@ -136,13 +132,13 @@ Section "@PACKAGE_NAME@ (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" @@ -193,7 +189,7 @@ Section "@PACKAGE_NAME@ (required)" Section1 WriteRegStr HKLM "${REGSTR}" "URLUpdateInfo" \ "http://sigrok.org/wiki/Downloads" WriteRegStr HKLM "${REGSTR}" "URLInfoAbout" "http://sigrok.org" - WriteRegStr HKLM "${REGSTR}" "DisplayVersion" "@PACKAGE_VERSION@" + WriteRegStr HKLM "${REGSTR}" "DisplayVersion" "@SC_PACKAGE_VERSION@" WriteRegStr HKLM "${REGSTR}" "Contact" \ "sigrok-devel@lists.sourceforge.org" WriteRegStr HKLM "${REGSTR}" "Comments" \ @@ -223,19 +219,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"