From a057c0e66764668c1fa78d9385e8c17111e8c449 Mon Sep 17 00:00:00 2001 From: Marios Paouris Date: Fri, 19 Jul 2024 08:36:16 +0300 Subject: [PATCH] Generate the NSIS installer when building on MSYS2/MinGW When building under MSYS2/MinGW generate windows-style paths for instfiles.nsh as makensis on windows expects them that way. Signed-off-by: Marios Paouris --- Makefile.am | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile.am b/Makefile.am index e7ead12e..a12798a4 100644 --- a/Makefile.am +++ b/Makefile.am @@ -469,7 +469,7 @@ file-list-extra.txt: # just emit raw snippets to be included separately in the install # and uninstall sections. instfiles.nsh: file-list.txt file-list-vpnc-script-win.js.txt file-list-extra.txt - $(AM_V_GEN) ( grep -hv "^$(libdir)/qt5/plugins" $^ | sed 's%\(.*\)%File "\1"%' ; \ + $(AM_V_GEN) ( for f in `grep -hv "^$(libdir)/qt5/plugins" $^`; do g=`$(CYGPATH_W) $$f`; echo File \"$$g\"; done; \ grep -h "^$(libdir)/qt5/plugins" $^ | sed 's%\(.*/qt5/plugins\)/\([^/]*\)/\([^/]*\)%SetOutPath "$$INSTDIR\\\\\2"\nFile "\1/\2/\3"%' ) > $@ uninstfiles.nsh: file-list.txt file-list-vpnc-script-win.js.txt file-list-extra.txt -- 2.50.1