Skip to content

Commit

Permalink
update build scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
sniper00 committed Aug 29, 2024
1 parent b9e63b2 commit 18780e0
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions premake5.lua
Original file line number Diff line number Diff line change
Expand Up @@ -277,12 +277,15 @@ newaction {
os.execute("premake5.exe clean")
os.execute("premake5.exe vs2022")
local vswhere = os.getenv("programfiles")..[[ (x86)\Microsoft Visual Studio\Installer\vswhere.exe]]
print("1", vswhere)
vswhere = string_trim(vswhere)
local command = string.format('"%s" %s', vswhere, " -latest -products * -requires Microsoft.Component.MSBuild -property installationPath")
print("2", command)
local handle = assert(io.popen(command))
local result = handle:read("*a")
handle:close()
result = string_trim(result)
print("3", result)
os.execute(string.format('"%s%s" -maxcpucount:4 Server.sln /t:rebuild /p:Configuration=Release ', result, [[\MSBuild\Current\Bin\MSBuild.exe]]))
end,
linux = function ()
Expand Down

0 comments on commit 18780e0

Please sign in to comment.