From b6bb372d19bd2f6ac931d3e0e096b4fa07024cfb Mon Sep 17 00:00:00 2001 From: ruki Date: Thu, 16 Nov 2023 23:59:26 +0800 Subject: fix binary dir for nsis --- xmake/scripts/xpack/nsis/makensis.nsi | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/xmake/scripts/xpack/nsis/makensis.nsi b/xmake/scripts/xpack/nsis/makensis.nsi index 3b79361bd..5d1a99dc0 100644 --- a/xmake/scripts/xpack/nsis/makensis.nsi +++ b/xmake/scripts/xpack/nsis/makensis.nsi @@ -185,7 +185,11 @@ Function .onInit ${EndIf} ; get binary directory +!if "${PACKAGE_BINDIR}" == "." + StrCpy $BinDir "$InstDir" +!else StrCpy $BinDir "$InstDir\${PACKAGE_BINDIR}" +!endif FunctionEnd @@ -273,7 +277,11 @@ Function un.onInit ${EndIf} ; get binary directory +!if "${PACKAGE_BINDIR}" == "." + StrCpy $BinDir "$InstDir" +!else StrCpy $BinDir "$InstDir\${PACKAGE_BINDIR}" +!endif FunctionEnd -- cgit v1.3.1