Created
April 14, 2025 14:27
-
-
Save Vbif/bd9432a911c7316661b0bf8a0739d0e2 to your computer and use it in GitHub Desktop.
Write engine and editor versions to file on build
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
local M = {} | |
function M.on_build_started(opts) | |
local file = io.open("version.txt", "w") | |
file:write("version: " .. editor.version, "\n") | |
file:write("sha1: " .. editor.engine_sha1, "\n") | |
file:close() | |
end | |
return M |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment