This commit is contained in:
Martin Rotter 2021-01-06 09:53:46 +01:00
parent f546db97d8
commit 8c3577384b

View File

@ -54,7 +54,8 @@ unix: LIBS += -L$$OUT_PWD/../librssguard/ -lrssguard
SEDREPLACE = "s|@APP_VERSION@|$$APP_VERSION|g; s|@APP_WIN_ARCH@|$$APP_WIN_ARCH|g; s|@APP_REVISION@|$$APP_REVISION|g; s|@APP_NAME@|$$APP_NAME|g; s|@APP_LOW_NAME@|$$APP_LOW_NAME|g; s|@EXE_NAME@|$${APP_LOW_NAME}.exe|g; s|@PWD@|$$replace(PWD, /, \\\\)|g; s|@OUT_PWD@|$$replace(OUT_PWD, /, \\\\)|g"
message($$MSG_PREFIX: Sed replace string: \"$$SEDREPLACE\")
FULLSEDCMD = "$$shell_path($$shell_quote($$PWD/../../resources/scripts/sed/sed.exe)) -e \"$$SEDREPLACE\" \"$$system_path($$system_quote($$PWD/../../resources/nsis/NSIS.definitions.nsh.in))\" > \"$$system_path($$system_quote($$OUT_PWD\NSIS.definitions.nsh))\""
# > \"$$system_path($$system_quote($$OUT_PWD\NSIS.definitions.nsh))\"
FULLSEDCMD = "$$shell_path($$shell_quote($$PWD/../../resources/scripts/sed/sed.exe)) -e \"$$SEDREPLACE\" \"$$system_path($$system_quote($$PWD/../../resources/nsis/NSIS.definitions.nsh.in))\""
message($$MSG_PREFIX: Full sed command: $$FULLSEDCMD)
system($$FULLSEDCMD)