Skip to content

Commit

Permalink
3rdParty: automatically set BuildVer in BuildSporeModAPI.bat
Browse files Browse the repository at this point in the history
  • Loading branch information
Rosalie241 committed Dec 23, 2023
1 parent d128141 commit f0556ce
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion 3rdParty/BuildSporeModAPI.bat
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,13 @@

set SPOREMODAPI_CUR_DIR=%~dp0

for /F "usebackq" %%F in (`git --no-pager --git-dir %SPOREMODAPI_CUR_DIR%/Spore-ModAPI/.git log --oneline ^| find "" /v /c`) do (
set SPOREMODAPI_COMMITCOUNT=%%F
)

msbuild "%SPOREMODAPI_CUR_DIR%\Spore-ModAPI\Spore ModAPI" ^
/t:BuildDlls ^
/p:BuildVer=291 ^
/p:BuildVer=%SPOREMODAPI_COMMITCOUNT% ^
/p:Config=Release ^
/p:Platform=Win32 ^
/m

0 comments on commit f0556ce

Please sign in to comment.