diff --git a/build.bat b/build.bat new file mode 100644 index 0000000..e1c5730 --- /dev/null +++ b/build.bat @@ -0,0 +1,5 @@ +@echo off + +"C:\Program Files\Microsoft Visual Studio\2022\Community\MSBuild\Current\Bin\msbuild.exe" build\s1-mod.sln /p:Configuration=Release /p:Platform=x64 + +pause \ No newline at end of file diff --git a/generate.bat b/generate.bat new file mode 100644 index 0000000..4fd21b1 --- /dev/null +++ b/generate.bat @@ -0,0 +1,5 @@ +@echo off +git submodule update --init --recursive +tools\premake5 %* vs2022 + +pause \ No newline at end of file diff --git a/premake5.lua b/premake5.lua index a499bf3..fe94aa5 100644 --- a/premake5.lua +++ b/premake5.lua @@ -1,4 +1,4 @@ -gitVersioningCommand = "git describe --tags --dirty --always" +gitVersioningCommand = "git describe --tags --always" gitCurrentBranchCommand = "git symbolic-ref -q --short HEAD" -- Quote the given string input as a C string @@ -314,7 +314,7 @@ dependson {"tlsdll", "runner"} links {"common"} -prebuildcommands {"pushd %{_MAIN_SCRIPT_DIR}", "premake5 generate-buildinfo", "popd"} +prebuildcommands {"pushd %{_MAIN_SCRIPT_DIR}", "tools\\premake5 generate-buildinfo", "popd"} if _OPTIONS["copy-to"] then postbuildcommands {"copy /y \"$(TargetPath)\" \"" .. _OPTIONS["copy-to"] .. "\""} diff --git a/tools/premake5.exe b/tools/premake5.exe new file mode 100644 index 0000000..1a637aa Binary files /dev/null and b/tools/premake5.exe differ