2 # Windows-specific packaging script
5 ifndef OPENPILOT_IS_COOL
6 $(error Top level Makefile must be used to build this target
)
9 VERSION_CMD
:= $(VERSION_INFO
)
10 FW_DIR
:= $(PACKAGE_DIR
)/firmware
13 NSIS_WINX86
:= $(ROOT_DIR
)/package
/winx86
14 NSIS_SCRIPT
:= $(NSIS_WINX86
)/openpilotgcs.nsi
15 NSIS_TEMPLATE
:= $(NSIS_WINX86
)/openpilotgcs.tpl
16 NSIS_HEADER
:= $(OPGCSSYNTHDIR
)/openpilotgcs.nsh
20 $(V1
) mkdir
-p
"$(dir $(NSIS_HEADER))"
22 --template
='$(NSIS_TEMPLATE)' \
23 --outfile
='$(NSIS_HEADER)' \
24 PACKAGE_LBL
='$(PACKAGE_LBL)' \
25 PACKAGE_NAME
='$(PACKAGE_NAME)' \
26 PACKAGE_SEP
='$(PACKAGE_SEP)'
27 $(V1
) echo
"Building Windows installer, please wait..."
28 $(V1
) echo
"If you have a script error in line 1 - use Unicode NSIS 2.46+"
29 $(V1
) echo
" http://www.scratchpaper.com"
30 $(NSIS
) $(NSIS_OPTS
) $(NSIS_SCRIPT
)