]> sigrok.org Git - pulseview.git/commitdiff
nsis: Also put firmware files into the installer.
authorUwe Hermann <redacted>
Wed, 1 Jan 2014 19:06:24 +0000 (20:06 +0100)
committerUwe Hermann <redacted>
Wed, 1 Jan 2014 19:13:44 +0000 (20:13 +0100)
contrib/pulseview_cross.nsi

index 1d1b0f1a8e5d6b531a02ba0000ed9e0f83a6138b..d59b47872d9754f7dbf90fade8e188c78422ce0c 100644 (file)
@@ -140,6 +140,12 @@ Section "PulseView (required)" Section1
        # Protocol decoders.
        File /r /x "__pycache__" "${CROSS}/share/libsigrokdecode/decoders/*"
 
+       # Install the file(s) specified below into the specified directory.
+       SetOutPath "$INSTDIR\firmware"
+
+       # Firmware files.
+       File /r "${CROSS}/share/sigrok-firmware/*"
+
        # Generate the uninstaller executable.
        WriteUninstaller "$INSTDIR\Uninstall.exe"
 
@@ -216,8 +222,12 @@ Section "Uninstall"
        # There could be *.pyc files or __pycache__ subdirs and so on.
        RMDir /r "$INSTDIR\decoders\*"
 
+       # Delete the firmware files.
+       File /r "$INSTDIR\firmware\*"
+
        # Delete the install directory and its sub-directories.
        RMDir "$INSTDIR\decoders"
+       RMDir "$INSTDIR\firmware"
        RMDir "$INSTDIR"
 
        # Delete the links from the start menu.