BuildDetails()
Description
Section titled “Description”The BuildDetails function returns a table with key-value pairs about the software build.
Arguments
Section titled “Arguments”This function does not accept any arguments.
Return
Section titled “Return”-
Build details:
This is the table with key-value pairs. These are the possible keys in the table:- GitDate: String with the date for the repository branch of the software.
- GitHead: String with the branch of the repository.
- GitHash: String with the hash for the repository.
- CompileDate: String with the date for the compile.
- CompileTime: String with the time for the compile.
- BigVersion: String indicating the software version.
- SmallVersion: String with the small version number of the software. Devices that only listen to a DMX data stream need to have this version to “understand” the streaming data.
- HostType: String with the host type, for instance, “Console” or “onPC”.
- HostSubType: String with the host sub-type, for instance, “FullSize” or “Light”.
- CodeType: String showing the type of code, for instance, “Release”.
- IsRelease: Boolean indicating if the software is a release version.
Example
Section titled “Example”This example prints the content of the BuildDetails table:
| Copy CodeLua |
| ``` |
| return function() |
--Store the build detials tablelocal myBuild = BuildDetails()--Print the content of the tablePrintf("GitDate: " .. myBuild.GitDate)Printf("GitHead: " .. myBuild.GitHead)Printf("GitHash: " .. myBuild.GitHash)Printf("CompileDate: " .. myBuild.CompileDate)Printf("CompileTime: " .. myBuild.CompileTime)Printf("BigVersion: " .. myBuild.BigVersion)Printf("SmallVersion: " .. myBuild.SmallVersion)Printf("HostType: " .. myBuild.HostType)Printf("HostSubType: " .. myBuild.HostSubType)Printf("CodeType: " .. myBuild.CodeType)Printf("IsRelease: " .. tostring(myBuild.IsRelease))end
### Related Lua Functions
- [Version()](https://malighting.clickhelp.co/smart/grandma3-user-manual-publication/lua_objectfree_version)- [HostType()](/grandma3/2-4/lua_objectfree_hosttype/)- [HostSubType()](/grandma3/2-4/lua_objectfree_hostsubtype/)