Skip to content

Commit 71db286

Browse files
committed
fix build version for xpack #5306
1 parent 4ddedff commit 71db286

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

xmake/plugins/pack/nsis/main.lua

+4
Original file line numberDiff line numberDiff line change
@@ -201,6 +201,10 @@ function _get_specvars(package)
201201
specvars.PACKAGE_WORKDIR = path.absolute(os.projectdir())
202202
specvars.PACKAGE_BINDIR = _translate_filepath(package, package:bindir())
203203
specvars.PACKAGE_OUTPUTFILE = path.absolute(package:outputfile())
204+
if specvars.PACKAGE_VERSION_BUILD then
205+
-- @see https://github.com/xmake-io/xmake/issues/5306
206+
specvars.PACKAGE_VERSION_BUILD = specvars.PACKAGE_VERSION_BUILD:gsub(" ", "_")
207+
end
204208
specvars.PACKAGE_INSTALLCMDS = function ()
205209
return _get_installcmds(package)
206210
end

0 commit comments

Comments
 (0)