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
)
12 NSIS_WINX86
:= $(ROOT_DIR
)/package
/winx86
13 NSIS_SCRIPT
:= $(NSIS_WINX86
)/openpilotgcs.nsi
14 NSIS_TEMPLATE
:= $(NSIS_WINX86
)/openpilotgcs.tpl
15 NSIS_HEADER
:= $(OPGCSSYNTHDIR
)/openpilotgcs.nsh
19 $(V1
) mkdir
-p
"$(dir $(NSIS_HEADER))"
21 --template
='$(NSIS_TEMPLATE)' \
22 --outfile
='$(NSIS_HEADER)' \
23 PACKAGE_LBL
='$(PACKAGE_LBL)' \
24 PACKAGE_NAME
='$(PACKAGE_NAME)' \
25 PACKAGE_SEP
='$(PACKAGE_SEP)'
26 $(V1
) echo
"Building Windows installer, please wait..."
27 $(V1
) echo
"If you have a script error in line 1 - use Unicode NSIS 2.46+"
28 $(V1
) echo
" http://www.scratchpaper.com"
29 $(NSIS
) $(NSIS_OPTS
) $(NSIS_SCRIPT
)