This commit is contained in:
Martin Rotter 2021-01-06 09:42:01 +01:00
parent 4cb4b7687c
commit 3ae276c776
1 changed files with 5 additions and 2 deletions

View File

@ -52,9 +52,12 @@ unix: LIBS += -L$$OUT_PWD/../librssguard/ -lrssguard
# Prepare files for NSIS.
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\".)
message($$MSG_PREFIX: Sed replace string: \"$$SEDREPLACE\")
system($$shell_path($$shell_quote($$PWD/../../resources/scripts/sed/sed.exe)) -e \"$$SEDREPLACE\" $$system_path($$system_quote($$PWD/../../resources/nsis/NSIS.definitions.nsh.in)) > \"$$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))\" > \"$$system_path($$system_quote($$OUT_PWD\NSIS.definitions.nsh))\""
message($$MSG_PREFIX: Full sed command: $$FULLSEDCMD)
#system()
system(xcopy /Y $$shell_path($$shell_quote($$PWD/../../resources/nsis/NSIS.template.in)) $$shell_path($$shell_quote($$OUT_PWD/)))
include(../../pri/install.pri)