Add build files & remove --dirty flag in premake5.lua

This commit is contained in:
Ahrimdon 2024-02-27 03:18:51 -05:00
parent 70e8a8502b
commit d2e50ebd30
4 changed files with 12 additions and 2 deletions

5
build.bat Normal file
View File

@ -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

5
generate.bat Normal file
View File

@ -0,0 +1,5 @@
@echo off
git submodule update --init --recursive
tools\premake5 %* vs2022
pause

View File

@ -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"] .. "\""}

BIN
tools/premake5.exe Normal file

Binary file not shown.