Skip to content

Commit

Permalink
Prepare for release by building 32bit and test drivers
Browse files Browse the repository at this point in the history
  • Loading branch information
alown committed Jun 19, 2014
1 parent da48146 commit 49586f6
Show file tree
Hide file tree
Showing 50 changed files with 903 additions and 6 deletions.
14 changes: 11 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,11 @@ This requires a C++ compiler, QT5 development libraries, libusb development pack
*Other*
On Windows, you will be required to install the drivers for the device, these can be found in installer/drivers.

Getting Started (from Binary)
-----------------------------
TODO: generate the binary
Getting Started (from Binary - Windows only)
--------------------------------------------
1. Download the installer from here
2. Run the installer
3. Plug OSCAR in

Repository Overview
-------------------
Expand Down Expand Up @@ -75,6 +77,12 @@ Contains the OSCAR logo, which is included in the software

Has the control software for your computer. This code presents a GUI for Windows, Linux or OSX based upon Qt5 and libusb. The source code can be found in sw/src, UI designs can be found in src/ui.

Other Notes
-----------
*Generating 'Combined' file for programming*
You will need the Caterina-leonardo.hex file from the bootloaders section of the Arduino code. You will also need the fw.hex generated from this source.
You will also need the tool srec_cat (part of the SRecord suite of tools).
`srec_cat fw.hex -intel Caterina-leonardo.hex -intel -o combined.hex -intel`

Licensing
---------
Expand Down
Binary file added installer/drivers/vista-driver.zip
Binary file not shown.
Binary file added installer/drivers/vista/OSCAR.cat
Binary file not shown.
Binary file added installer/drivers/vista/OSCAR.inf
Binary file not shown.
Binary file not shown.
Binary file added installer/drivers/vista/amd64/install-filter.exe
Binary file not shown.
Binary file added installer/drivers/vista/amd64/libusb0.dll
Binary file not shown.
Binary file added installer/drivers/vista/amd64/libusb0.sys
Binary file not shown.
Binary file added installer/drivers/vista/amd64/libusb0_x86.dll
Binary file not shown.
Binary file added installer/drivers/vista/amd64/libusbK.dll
Binary file not shown.
Binary file added installer/drivers/vista/amd64/libusbK.sys
Binary file not shown.
Binary file added installer/drivers/vista/amd64/libusbK_x86.dll
Binary file not shown.
Binary file not shown.
Binary file added installer/drivers/vista/installer_x64.exe
Binary file not shown.
Binary file added installer/drivers/vista/installer_x86.exe
Binary file not shown.
851 changes: 851 additions & 0 deletions installer/drivers/vista/license/libusb0/installer_license.txt

Large diffs are not rendered by default.

Binary file not shown.
Binary file added installer/drivers/vista/x86/install-filter.exe
Binary file not shown.
Binary file added installer/drivers/vista/x86/libusb0.dll
Binary file not shown.
Binary file added installer/drivers/vista/x86/libusb0.sys
Binary file not shown.
Binary file added installer/drivers/vista/x86/libusb0_x86.dll
Binary file not shown.
Binary file added installer/drivers/vista/x86/libusbK.dll
Binary file not shown.
Binary file added installer/drivers/vista/x86/libusbK.sys
Binary file not shown.
Binary file not shown.
Binary file added installer/oscar.exe
Binary file not shown.
Binary file added installer/oscar.ico
Binary file not shown.
44 changes: 41 additions & 3 deletions installer/oscar.nsi
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,15 @@ Name "OSCAR Screen Adapter"
OutFile "oscar-installer.exe"
InstallDir "$LOCALAPPDATA\OSCAR"
InstallDirRegKey HKCU "Software\OSCAR" ""
RequestExecutionLevel user

RequestExecutionLevel admin

!define APPNAME "OSCAR Screen Adapter"
!define COMPANYNAME "Team OSCAR"
!define VERSIONMAJOR 0
!define VERSIONMINOR 1
!define VERSIONBUILD 1
!define INSTALLSIZE 30000

;UI settings
!define MUI_ABORTWARNING
Expand All @@ -25,16 +33,38 @@ RequestExecutionLevel user
Section "OSCAR" SecOSCAR
SetOutPath "$INSTDIR"

;TODO: Add files here
;Actual OSCAR executable
File "oscar.exe"
File "oscar.ico"

;QT Library
;Libraries
File /r "qtlib\*.*"
SetOutPath "$INSTDIR\platforms"
File /r "qtlib\platforms\*.*"

;TODO: Install drivers

;Add to start menu
createDirectory "$SMPROGRAMS\OSCAR"
createShortCut "$SMPROGRAMS\OSCAR\OSCAR.lnk" "$INSTDIR\oscar.exe" "" "$INSTDIR/oscar.ico"

;Create unistaller
WriteRegStr HKCU "Software\OSCAR" "" $INSTDIR
WriteUninstaller "$INSTDIR\Uninstall.exe"

;Registry stuff for Add/remove programs
WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\${COMPANYNAME} ${APPNAME}" "DisplayName" "${COMPANYNAME} - ${APPNAME}"
WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\${COMPANYNAME} ${APPNAME}" "UninstallString" "$\"$INSTDIR\Uninstall.exe$\""
WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\${COMPANYNAME} ${APPNAME}" "QuietUninstallString" "$\"$INSTDIR\Uninstall.exe$\" /S"
WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\${COMPANYNAME} ${APPNAME}" "InstallLocation" "$\"$INSTDIR$\""
WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\${COMPANYNAME} ${APPNAME}" "Publisher" "${COMPANYNAME}"
WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\${COMPANYNAME} ${APPNAME}" "DisplayVersion" "$\"${VERSIONMAJOR}.${VERSIONMINOR}.${VERSIONBUILD}$\""
WriteRegDWORD HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\${COMPANYNAME} ${APPNAME}" "VersionMajor" ${VERSIONMAJOR}
WriteRegDWORD HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\${COMPANYNAME} ${APPNAME}" "VersionMinor" ${VERSIONMINOR}
;There is no option for modifying or repairing the install
WriteRegDWORD HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\${COMPANYNAME} ${APPNAME}" "NoModify" 1
WriteRegDWORD HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\${COMPANYNAME} ${APPNAME}" "NoRepair" 1
WriteRegDWORD HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\${COMPANYNAME} ${APPNAME}" "EstimatedSize" ${INSTALLSIZE}
SectionEnd

;Descriptions
Expand All @@ -45,10 +75,18 @@ LangString DESC_SecOSCAR ${LANG_ENGLISH} "OSCAR control program + drivers"

;Uninstaller
Section "Uninstall"
;Delete from Program Files
Delete "$INSTDIR\platforms\*"
RMDir "$INSTDIR\platforms"
Delete "$INSTDIR\*"

;Delete from Start Menu
Delete "$SMPROGRAMS\OSCAR\OSCAR.link"
RMDir "$SMPROGRAMS\OSCAR"

;Delete add/remove programs reg keys
DeleteRegKey HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\${COMPANYNAME} ${APPNAME}"

Delete "$INSTDIR\Uninstall.exe"
RMDir "$INSTDIR"
DeleteRegKey /ifempty HKCU "Software\OSCAR"
Expand Down
Binary file modified installer/qtlib/Qt5Core.dll
Binary file not shown.
Binary file modified installer/qtlib/Qt5Gui.dll
Binary file not shown.
Binary file modified installer/qtlib/Qt5Widgets.dll
Binary file not shown.
Binary file modified installer/qtlib/Qt5WinExtras.dll
Binary file not shown.
Binary file modified installer/qtlib/icudt51.dll
Binary file not shown.
Binary file modified installer/qtlib/icuin51.dll
Binary file not shown.
Binary file modified installer/qtlib/icuuc51.dll
Binary file not shown.
Binary file modified installer/qtlib/libEGL.dll
Binary file not shown.
Binary file modified installer/qtlib/libGLESv2.dll
Binary file not shown.
Binary file modified installer/qtlib/libusb-1.0.dll
Binary file not shown.
Binary file modified installer/qtlib/platforms/qwindows.dll
Binary file not shown.
Binary file added installer/qtlib64/Qt5Core.dll
Binary file not shown.
Binary file added installer/qtlib64/Qt5Gui.dll
Binary file not shown.
Binary file added installer/qtlib64/Qt5Widgets.dll
Binary file not shown.
Binary file added installer/qtlib64/Qt5WinExtras.dll
Binary file not shown.
Binary file added installer/qtlib64/icudt51.dll
Binary file not shown.
Binary file added installer/qtlib64/icuin51.dll
Binary file not shown.
Binary file added installer/qtlib64/icuuc51.dll
Binary file not shown.
Binary file added installer/qtlib64/libEGL.dll
Binary file not shown.
Binary file added installer/qtlib64/libGLESv2.dll
Binary file not shown.
Binary file added installer/qtlib64/libusb-1.0.dll
Binary file not shown.
Binary file added installer/qtlib64/platforms/qwindows.dll
Binary file not shown.
Binary file added logo/appicon.ico
Binary file not shown.

0 comments on commit 49586f6

Please sign in to comment.