1
0
mirror of https://bitbucket.org/librepilot/librepilot.git synced 2025-01-18 03:52:11 +01:00

OP-483: add firmware binaries to Windows installer package

This commit is contained in:
Oleg Semyonov 2011-05-19 01:32:54 +03:00
parent 285c429589
commit 460478fc71
3 changed files with 10 additions and 4 deletions

View File

@ -13,7 +13,7 @@ $(NSIS_HEADER): $(NSIS_TEMPLATE)
$(V0) @echo " PY $@"
$(V1) $(VERSION_CMD) --template="$<" --outfile="$@"
nsis: $(NSIS_HEADER) gcs
nsis: $(NSIS_HEADER) gcs release_flight
$(NSIS_CMD) $(NSIS_OPTS) $(NSIS_SCRIPT)
gcs: uavobjects

View File

@ -51,10 +51,13 @@
!define INSTALLER_NAME "OpenPilot GCS Installer"
; Read automatically generated version info
; !define OUT_FILE "OpenPilotGCS-XXXX-install.exe"
; !define RELEASE_LBL "${DATE}-${TAG_OR_HASH8}"
; !define RELEASE_DIR "..\..\build\release-$${RELEASE_LBL}"
; !define OUT_FILE "OpenPilotGCS-$${RELEASE_LBL}-install.exe"
; !define FIRMWARE_DIR "firmware-$${RELEASE_LBL}"
; !define PRODUCT_VERSION "0.0.0.0"
; !define FILE_VERSION "0.0.0.0"
; !define BUILD_DESCRIPTION "Unknown revision."
; !define FILE_VERSION "${TAG_OR_BRANCH}:${HASH8} ${DATETIME}"
; !define BUILD_DESCRIPTION "${TAG_OR_BRANCH}:${HASH8} built using ${ORIGIN} as origin, committed ${DATETIME} as ${HASH}"
!include "${GCS_PKG_TREE}\openpilotgcs.nsh"
Name "${PRODUCT_NAME}"
@ -149,6 +152,8 @@ Section "Core files" InSecCore
SectionIn RO
SetOutPath "$INSTDIR\bin"
File /r "${GCS_BUILD_TREE}\bin\*"
SetOutPath "$INSTDIR\share\${FIRMWARE_DIR}"
File /r "${RELEASE_DIR}\${FIRMWARE_DIR}\*"
SectionEnd
Section "Plugins" InSecPlugins

View File

@ -15,6 +15,7 @@
!define RELEASE_LBL "${DATE}-${TAG_OR_HASH8}"
!define RELEASE_DIR "..\..\build\release-$${RELEASE_LBL}"
!define OUT_FILE "OpenPilotGCS-$${RELEASE_LBL}-install.exe"
!define FIRMWARE_DIR "firmware-$${RELEASE_LBL}"
; Installer version info
!define PRODUCT_VERSION "0.0.0.0"