* [package] Add QtSvg support DLLs for Windows.
* [Simulator] Add images/css resources for new version; Create SimulatorIcon and SimulatorStyle classes; Build with SVG support, remove unused bitmaps.
* [Simulator] Improve and simplify VirtualJoystickWidget resize event (sticks maintain X/Y position) & improve values layout w/out trims.
* [Simulator] Refactor Trainer simulator to use VirtualJoystickWidget, gains lock/hold buttons and X/Y position readout.
* [Simulator] More compact layout for Telemetry simulator, reduces min. width and adds scrolling columns to allow smaller window sizes.
* [Simulator] Add new SimulatorMainWindow and RadioOutputsWidget UI classes.
* [storage] Add non-persistent sessionId() to AppData for tracking currently active radio profile ID.
* [Simulator] Major UI updates:
* Use a MainWindow interface with dockable/floatable windows, proper toolbar & menu;
* Persistent size/layout state of all windows/docks/etc between uses, per radio profile;
* Completely separate radio Outputs window with configurable layout (also persistent between uses);
* Translations now enabled in standalone Simulator, follows main Companion setting (they need a lot of updates);
* New custom icons throughout, toolbar icon sizes adhere to user preference in Companion.
* [Simulator] Debug Output console updates:
* New filter feature with optional full RegEx support, can work in inclusive or exclusive modes (full help text is included in UI);
* Up to 50 user-defined filters are saved to permanent settings, also a few predefined filters are provided;
* Saves/restores the last filter used and if it was en/disabled;
* Added word wrap and clear screen features;
* Configurable scroll-back buffer size;
* Increased efficiency & performance of the buffering/printing process.
* [Simulator][OSX] Visual UI tweaks for OS X.
* [Simulator] Fix some debug console settings not being restored properly.
* [Simulator] Add ability to hide/show menu bar; Persist view state of menu bar and radio title bar; Reduce font size on OS X; Other small visual tweaks and improvements.
* [build] Add QtSvg to Linux build scripts (a guess for Dockerfile).
* [build] Fix for Qt 5.3.
* Add OpenTx headers to new files.
* [Companion][storage] Update GeneralSettings() initializer to use current sessionId for profile data retrieval, removes workaround for standalone Simulator being started with arbitrary profile; AppData: always update sessionId when global id() changes.
* [X10] Fixes for new simulator
255 lines
8.8 KiB
Plaintext
255 lines
8.8 KiB
Plaintext
;NSIS Modern User Interface
|
|
;Start Menu Folder Selection Example Script
|
|
;Written by Joost Verburg
|
|
|
|
;--------------------------------
|
|
;Include Modern UI
|
|
|
|
!include "MUI2.nsh"
|
|
!include "@CMAKE_CURRENT_SOURCE_DIR@\..\targets\windows\FileAssociation.nsh"
|
|
|
|
;--------------------------------
|
|
;General
|
|
|
|
;Name and file
|
|
Name "OpenTX Companion @VERSION_FAMILY@"
|
|
OutFile "companion-windows-@VERSION@.exe"
|
|
|
|
;Default installation folder
|
|
InstallDir "$PROGRAMFILES\OpenTX\Companion @VERSION_FAMILY@"
|
|
|
|
;Get installation folder from registry if available
|
|
InstallDirRegKey HKCU "Software\OpenTX\Companion @VERSION_FAMILY@" ""
|
|
|
|
;Compressor options
|
|
SetCompressor /FINAL /SOLID lzma
|
|
SetCompressorDictSize 64
|
|
|
|
;Request application privileges for Windows Vista
|
|
RequestExecutionLevel admin
|
|
|
|
;--------------------------------
|
|
;Variables
|
|
|
|
Var StartMenuFolder
|
|
|
|
;--------------------------------
|
|
;Interface Settings
|
|
|
|
!define MUI_ABORTWARNING
|
|
|
|
;--------------------------------
|
|
;File Exists Macro
|
|
|
|
; See http://nsis.sourceforge.net/Check_if_a_file_exists_at_compile_time for documentation
|
|
!macro !defineifexist _VAR_NAME _FILE_NAME
|
|
!tempfile _TEMPFILE
|
|
!ifdef NSIS_WIN32_MAKENSIS
|
|
; Windows - cmd.exe
|
|
!system 'if exist "${_FILE_NAME}" echo !define ${_VAR_NAME} > "${_TEMPFILE}"'
|
|
!else
|
|
; Posix - sh
|
|
!system 'if [ -e "${_FILE_NAME}" ]; then echo "!define ${_VAR_NAME}" > "${_TEMPFILE}"; fi'
|
|
!endif
|
|
!include '${_TEMPFILE}'
|
|
!delfile '${_TEMPFILE}'
|
|
!undef _TEMPFILE
|
|
!macroend
|
|
!define !defineifexist "!insertmacro !defineifexist"
|
|
|
|
;--------------------------------
|
|
;Pages
|
|
|
|
!insertmacro MUI_PAGE_LICENSE "@CMAKE_CURRENT_SOURCE_DIR@\..\targets\windows\license.txt"
|
|
!insertmacro MUI_PAGE_COMPONENTS
|
|
!insertmacro MUI_PAGE_DIRECTORY
|
|
|
|
;Start Menu Folder Page Configuration
|
|
!define MUI_STARTMENUPAGE_REGISTRY_ROOT "HKCU"
|
|
!define MUI_STARTMENUPAGE_REGISTRY_KEY "Software\OpenTX\Companion @VERSION_FAMILY@"
|
|
!define MUI_STARTMENUPAGE_REGISTRY_VALUENAME "Start Menu Folder"
|
|
|
|
!insertmacro MUI_PAGE_STARTMENU Application $StartMenuFolder
|
|
|
|
!insertmacro MUI_PAGE_INSTFILES
|
|
|
|
# These indented statements modify settings for MUI_PAGE_FINISH
|
|
!define MUI_FINISHPAGE_NOAUTOCLOSE
|
|
!define MUI_FINISHPAGE_RUN
|
|
!define MUI_FINISHPAGE_RUN_CHECKED
|
|
!define MUI_FINISHPAGE_RUN_TEXT "Launch OpenTX Companion @VERSION_FAMILY@"
|
|
!define MUI_FINISHPAGE_RUN_FUNCTION "LaunchLink"
|
|
# !define MUI_FINISHPAGE_SHOWREADME_NOTCHECKED
|
|
# !define MUI_FINISHPAGE_SHOWREADME $INSTDIR\readme.txt
|
|
!insertmacro MUI_PAGE_FINISH
|
|
|
|
!insertmacro MUI_UNPAGE_CONFIRM
|
|
!insertmacro MUI_UNPAGE_INSTFILES
|
|
|
|
;--------------------------------
|
|
;Languages
|
|
|
|
!insertmacro MUI_LANGUAGE "English"
|
|
!insertmacro MUI_LANGUAGE "French"
|
|
|
|
;--------------------------------
|
|
;Installer Sections
|
|
|
|
Section "OpenTX Companion" SecDummy
|
|
|
|
Delete "$INSTDIR\opentx-*-simulator.dll"
|
|
Delete "$INSTDIR\lang\*.*"
|
|
RMDir "$INSTDIR\lang"
|
|
SetOutPath "$INSTDIR\platforms"
|
|
File "@QT_DLL_DIR@\..\plugins\platforms\qwindows.dll"
|
|
|
|
SetOutPath "$INSTDIR"
|
|
|
|
File "@CMAKE_CURRENT_SOURCE_DIR@\..\targets\windows\license.txt"
|
|
File "..\Release\companion.exe"
|
|
File "..\Release\simulator.exe"
|
|
File "..\Release\opentx-*-simulator.dll"
|
|
${!defineifexist} PTHREAD_WINDIR "C:\Programs\pthreads\Pre-built.2\lib\pthreadVC2.dll"
|
|
!ifdef PTHREAD_WINDIR
|
|
File "C:\Programs\pthreads\Pre-built.2\lib\pthreadVC2.dll"
|
|
!else
|
|
File "@SYSDIR@\system32\pthreadVC2.dll"
|
|
!endif
|
|
File "@SYSDIR@\msvcp140.dll"
|
|
File "@SYSDIR@\vcruntime140.dll"
|
|
File "@QT_DLL_DIR@\Qt5Core.dll"
|
|
File "@QT_DLL_DIR@\Qt5Gui.dll"
|
|
File "@QT_DLL_DIR@\Qt5Widgets.dll"
|
|
File "@QT_DLL_DIR@\Qt5PrintSupport.dll"
|
|
File "@QT_DLL_DIR@\Qt5Network.dll"
|
|
File "@QT_DLL_DIR@\Qt5Multimedia.dll"
|
|
File "@QT_DLL_DIR@\Qt5Svg.dll"
|
|
File "@QT_DLL_DIR@\Qt5Xml.dll"
|
|
|
|
File "@SDL_DIR@\SDL.dll"
|
|
File "@CMAKE_CURRENT_SOURCE_DIR@\..\targets\windows\avrdude.exe"
|
|
File "@CMAKE_CURRENT_SOURCE_DIR@\..\targets\windows\avrdude.conf"
|
|
File "@CMAKE_CURRENT_SOURCE_DIR@\..\targets\windows\libusb0.dll"
|
|
File "@CMAKE_CURRENT_SOURCE_DIR@\..\targets\windows\dfu-util.exe"
|
|
File "@CMAKE_CURRENT_SOURCE_DIR@\..\targets\windows\libusb-1.0.dll"
|
|
|
|
SetOutPath "$INSTDIR\printsupport"
|
|
File "@QT_DLL_DIR@\..\plugins\printsupport\windowsprintersupport.dll"
|
|
|
|
SetOutPath "$INSTDIR\imageformats"
|
|
File "@QT_DLL_DIR@\..\plugins\imageformats\qjpeg.dll"
|
|
File "@QT_DLL_DIR@\..\plugins\imageformats\qsvg.dll"
|
|
|
|
SetOutPath "$INSTDIR\mediaservice"
|
|
File "@QT_DLL_DIR@\..\plugins\mediaservice\dsengine.dll"
|
|
|
|
SetOutPath "$INSTDIR"
|
|
;Store installation folder
|
|
WriteRegStr HKCU "Software\OpenTX\Companion @VERSION_FAMILY@" "" $INSTDIR
|
|
|
|
;Associate with extentions ,bin and .hex
|
|
${registerExtension} "$INSTDIR\companion.exe" ".bin" "BIN_File"
|
|
${registerExtension} "$INSTDIR\companion.exe" ".hex" "HEX_File"
|
|
${registerExtension} "$INSTDIR\companion.exe" ".companion" "EEPE_File"
|
|
${registerExtension} "$INSTDIR\companion.exe" ".eepm" "EEPM_File"
|
|
|
|
;Create uninstaller
|
|
WriteUninstaller "$INSTDIR\Uninstall.exe"
|
|
|
|
;Registry information for add/remove programs
|
|
WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\OpenTX Companion @VERSION_FAMILY@" "DisplayName" "OpenTX Companion @VERSION_FAMILY@"
|
|
WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\OpenTX Companion @VERSION_FAMILY@" "UninstallString" "$\"$INSTDIR\Uninstall.exe$\""
|
|
WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\OpenTX Companion @VERSION_FAMILY@" "DisplayIcon" "$\"$INSTDIR\companion.exe$\""
|
|
WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\OpenTX Companion @VERSION_FAMILY@" "Publisher" "OpenTX"
|
|
WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\OpenTX Companion @VERSION_FAMILY@" "URLInfoAbout" "http://www.open-tx.org"
|
|
WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\OpenTX Companion @VERSION_FAMILY@" "QuietUninstallString" "$\"$INSTDIR\Uninstall.exe$\" /S"
|
|
|
|
!insertmacro MUI_STARTMENU_WRITE_BEGIN Application
|
|
|
|
;Create shortcuts
|
|
CreateDirectory "$SMPROGRAMS\$StartMenuFolder"
|
|
CreateShortCut "$SMPROGRAMS\$StartMenuFolder\Companion @VERSION_FAMILY@.lnk" "$INSTDIR\companion.exe"
|
|
CreateShortCut "$SMPROGRAMS\$StartMenuFolder\Firmware Simulator @VERSION_FAMILY@.lnk" "$INSTDIR\simulator.exe"
|
|
CreateShortCut "$SMPROGRAMS\$StartMenuFolder\Uninstall Companion @VERSION_FAMILY@.lnk" "$INSTDIR\Uninstall.exe"
|
|
|
|
!insertmacro MUI_STARTMENU_WRITE_END
|
|
|
|
SectionEnd
|
|
|
|
;--------------------------------
|
|
;Descriptions
|
|
|
|
;Language strings
|
|
LangString DESC_SecDummy ${LANG_ENGLISH} "Models and settings editor for OpenTX"
|
|
LangString DESC_SecDummy ${LANG_FRENCH} "Editeur de r�glages et mod�les pour OpenTX"
|
|
|
|
;Assign language strings to sections
|
|
!insertmacro MUI_FUNCTION_DESCRIPTION_BEGIN
|
|
!insertmacro MUI_DESCRIPTION_TEXT ${SecDummy} $(DESC_SecDummy)
|
|
!insertmacro MUI_FUNCTION_DESCRIPTION_END
|
|
|
|
;--------------------------------
|
|
;Uninstaller Section
|
|
|
|
Section "Uninstall"
|
|
|
|
;ADD YOUR OWN FILES HERE...
|
|
|
|
Delete "$INSTDIR\license.txt"
|
|
Delete "$INSTDIR\companion.exe"
|
|
Delete "$INSTDIR\simulator.exe"
|
|
Delete "$INSTDIR\opentx-*-simulator.dll"
|
|
Delete "$INSTDIR\pthreadVC2.dll"
|
|
Delete "$INSTDIR\SDL.dll"
|
|
Delete "$INSTDIR\msvcp140.dll"
|
|
Delete "$INSTDIR\vcruntime140.dll"
|
|
Delete "$INSTDIR\Qt5Core.dll"
|
|
Delete "$INSTDIR\Qt5Gui.dll"
|
|
Delete "$INSTDIR\Qt5Widgets.dll"
|
|
Delete "$INSTDIR\Qt5PrintSupport.dll"
|
|
Delete "$INSTDIR\Qt5Network.dll"
|
|
Delete "$INSTDIR\Qt5Multimedia.dll"
|
|
Delete "$INSTDIR\Qt5Xml.dll"
|
|
Delete "$INSTDIR\avrdude.exe"
|
|
Delete "$INSTDIR\avrdude.conf"
|
|
Delete "$INSTDIR\libusb0.dll"
|
|
Delete "$INSTDIR\dfu-util.exe"
|
|
Delete "$INSTDIR\libusb-1.0.dll"
|
|
Delete "$INSTDIR\Uninstall.exe"
|
|
|
|
Delete "$INSTDIR\lang\*.*"
|
|
Delete "$INSTDIR\phonon_backend\*.*"
|
|
Delete "$INSTDIR\platforms\*.*"
|
|
Delete "$INSTDIR\printsupport\*.*"
|
|
Delete "$INSTDIR\mediaservice\*.*"
|
|
Delete "$INSTDIR\mediaservice\imageformats\*.*"
|
|
|
|
RMDir "$INSTDIR\lang"
|
|
RMDir "$INSTDIR\phonon_backend"
|
|
RMDir "$INSTDIR\platforms"
|
|
RMDir "$INSTDIR\printsupport"
|
|
RMDir "$INSTDIR\mediaservice"
|
|
RMDir "$INSTDIR\imageformats"
|
|
RMDir "$INSTDIR"
|
|
|
|
${unregisterExtension} ".bin" "BIN File"
|
|
${unregisterExtension} ".hex" "HEX File"
|
|
${unregisterExtension} ".eepm" "EEPE File"
|
|
${unregisterExtension} ".otx" "OpenTX Archive"
|
|
|
|
!insertmacro MUI_STARTMENU_GETFOLDER Application $StartMenuFolder
|
|
|
|
Delete "$SMPROGRAMS\$StartMenuFolder\Companion @VERSION_FAMILY@.lnk"
|
|
Delete "$SMPROGRAMS\$StartMenuFolder\Firmware Simulator @VERSION_FAMILY@.lnk"
|
|
Delete "$SMPROGRAMS\$StartMenuFolder\Uninstall Companion @VERSION_FAMILY@.lnk"
|
|
RMDir "$SMPROGRAMS\$StartMenuFolder"
|
|
|
|
DeleteRegKey /ifempty HKCU "Software\OpenTX Companion @VERSION_FAMILY@"
|
|
DeleteRegKey HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\OpenTX Companion @VERSION_FAMILY@"
|
|
|
|
SectionEnd
|
|
|
|
Function LaunchLink
|
|
ExecShell "" "$INSTDIR\companion.exe"
|
|
FunctionEnd
|