micropeak: Fetch Mac and Windows drivers when creating packages
authorKeith Packard <keithp@keithp.com>
Thu, 17 Jan 2013 06:05:32 +0000 (22:05 -0800)
committerKeith Packard <keithp@keithp.com>
Thu, 17 Jan 2013 18:41:22 +0000 (10:41 -0800)
This downloads the FTDI drivers from FTDI during the build process

Signed-off-by: Keith Packard <keithp@keithp.com>
micropeak/FTDI.tar.gz [deleted file]
micropeak/Makefile.am
micropeak/ReadMe-Mac.rtf
micropeak/micropeak-windows.nsi

diff --git a/micropeak/FTDI.tar.gz b/micropeak/FTDI.tar.gz
deleted file mode 100644 (file)
index cd08ecf..0000000
Binary files a/micropeak/FTDI.tar.gz and /dev/null differ
index 4a7aaaa1de0d85ab13d98a4056aebc8d8b6d00c8..06eb3115a0b00dadcf18dde14135f8431ff54184 100644 (file)
@@ -89,12 +89,22 @@ FAT_FILES=$(FATJAR) $(ALTOSLIB_CLASS) $(ALTOSUILIB_CLASS) $(FREETTS_CLASS) $(JFR
 LINUX_FILES=$(FAT_FILES) libaltos.so $(FIRMWARE) $(DOC)
 LINUX_EXTRA=micropeak-fat
 
+MACOSX_DRIVER_URL=http://www.ftdichip.com/Drivers/VCP/MacOSX/FTDIUSBSerialDriver_v2_2_18.dmg
+MACOSX_DRIVER=FTDIUSBSerialDriver_v2_2_18.dmg
 MACOSX_INFO_PLIST=Info.plist
-MACOSX_DRIVER=FTDI.tar.gz
 MACOSX_README=ReadMe-Mac.rtf
 MACOSX_FILES=$(FAT_FILES) libaltos.dylib $(MACOSX_INFO_PLIST) $(MACOSX_DRIVER) $(MACOSX_README)
 
-WINDOWS_FILES=$(FAT_FILES) altos.dll altos64.dll $(top_srcdir)/telemetrum.inf $(WINDOWS_ICON)
+$(MACOSX_DRIVER):
+       wget $(MACOSX_DRIVER_URL)
+
+WINDOWS_DRIVER_URL=http://www.ftdichip.com/Drivers/CDM/CDM20824_Setup.exe
+WINDOWS_DRIVER=CDM20824_Setup.exe
+
+$(WINDOWS_DRIVER):
+       wget $(WINDOWS_DRIVER_URL)
+
+WINDOWS_FILES=$(FAT_FILES) altos.dll altos64.dll $(top_srcdir)/telemetrum.inf $(WINDOWS_ICON) $(WINDOWS_DRIVER)
 
 if FATINSTALL
 
@@ -219,7 +229,7 @@ $(MACOSX_DIST): $(MACOSX_FILES)
        cp -a MicroPeak.app macosx/
        cp -a $(MACOSX_README) macosx/ReadMe.rtf
        cp -p Info.plist macosx/MicroPeak.app/Contents
-       tar xzf $(MACOSX_DRIVER) -C macosx
+       cp -p $(MACOSX_DRIVER) macosx
        mkdir -p macosx/MicroPeak.app/Contents/Resources/Java
        cp -p $(FATJAR) macosx/MicroPeak.app/Contents/Resources/Java/micropeak.jar
        cp -p libaltos.dylib macosx/MicroPeak.app/Contents/Resources/Java
index 64bbdeb62652a45c3de2558a775807e7229ce79a..f831c3f9133da07864eb6a434a5394b689abea85 100644 (file)
@@ -14,6 +14,6 @@ There are two files included in the Mac OS X distribution:\
 \
 As with most Mac OS X applications, install MicroPeak by dragging it from the distribution disk image to a suitable place on your computer.\
 \
-To communicate with the MicroPeak serial adapter, you need to installed the FTDI device drivers, which is done by double-clicking on the FTDIUSBSerialDriver package file. That will guide you through the installation process.\
+To communicate with the MicroPeak serial adapter, you need to installed the FTDI device drivers, which is done by double-clicking on the FTDIUSBSerialDriver disk image. Inside that is the FTDI USB Serial Driver package. Double click on that and it will guide you through the installation process.\
 \
-Thanks for choosing AltusMetrum products!}
\ No newline at end of file
+Thanks for choosing AltusMetrum products!}
index 425048bd599f51733ab7cb81c08fb4f218988e7c..4313ac284e111d44734c65f7abf5df314506f3b6 100644 (file)
@@ -80,6 +80,15 @@ Section "MicroPeak Application"
        CreateShortCut "$SMPROGRAMS\MicroPeak.lnk" "$SYSDIR\javaw.exe" "-jar micropeak-fat.jar" "$INSTDIR\micro-peak.ico"
 SectionEnd
 
+Section "FTDI USB Driver"
+       SetOutPath $INSTDIR
+
+       File "CDM20824_Setup.exe"
+
+       StrCpy $2 "$INSTDIR\CDM20824_Setup.exe"
+       ExecWait $2
+SectionEnd
+
 Section "MicroPeak Desktop Shortcut"
        CreateShortCut "$DESKTOP\MicroPeak.lnk" "$INSTDIR\micropeak-fat.jar"  "" "$INSTDIR\micro-peak.ico"
 SectionEnd