summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorruki <[email protected]>2024-07-05 22:54:32 +0800
committerruki <[email protected]>2024-07-05 22:54:32 +0800
commit71db286a686ab5ecc4f7430fe8ee8e9200027b97 (patch)
tree3632ad17e2f474444a6b9f262bb5b3ee86205894
parent4ddedfff88911667afbf491854921ed532f53167 (diff)
fix build version for xpack #5306
-rw-r--r--xmake/plugins/pack/nsis/main.lua4
1 files changed, 4 insertions, 0 deletions
diff --git a/xmake/plugins/pack/nsis/main.lua b/xmake/plugins/pack/nsis/main.lua
index c24c718fe..c1a565371 100644
--- a/xmake/plugins/pack/nsis/main.lua
+++ b/xmake/plugins/pack/nsis/main.lua
@@ -201,6 +201,10 @@ function _get_specvars(package)
specvars.PACKAGE_WORKDIR = path.absolute(os.projectdir())
specvars.PACKAGE_BINDIR = _translate_filepath(package, package:bindir())
specvars.PACKAGE_OUTPUTFILE = path.absolute(package:outputfile())
+ if specvars.PACKAGE_VERSION_BUILD then
+ -- @see https://github.com/xmake-io/xmake/issues/5306
+ specvars.PACKAGE_VERSION_BUILD = specvars.PACKAGE_VERSION_BUILD:gsub(" ", "_")
+ end
specvars.PACKAGE_INSTALLCMDS = function ()
return _get_installcmds(package)
end