From 18780e04a7db3a8304beee05d7fd204010d85cf6 Mon Sep 17 00:00:00 2001 From: bruce Date: Fri, 30 Aug 2024 00:16:40 +0800 Subject: [PATCH] update build scripts --- premake5.lua | 3 +++ 1 file changed, 3 insertions(+) diff --git a/premake5.lua b/premake5.lua index a35d2f12..25ee1147 100644 --- a/premake5.lua +++ b/premake5.lua @@ -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 ()