diff options
| author | ruki <[email protected]> | 2023-11-16 23:59:26 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2023-11-16 23:59:26 +0800 |
| commit | b6bb372d19bd2f6ac931d3e0e096b4fa07024cfb (patch) | |
| tree | a8bdb3fcd6647ee9e47e71a01216cdecf9e1084f | |
| parent | a986e4a3a2ead1ed96973529de357ab7dcc90095 (diff) | |
fix binary dir for nsis
| -rw-r--r-- | xmake/scripts/xpack/nsis/makensis.nsi | 8 |
1 files changed, 8 insertions, 0 deletions
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 |
