Skip to content

Instantly share code, notes, and snippets.

@Vbif
Created April 14, 2025 14:27
Show Gist options
  • Save Vbif/bd9432a911c7316661b0bf8a0739d0e2 to your computer and use it in GitHub Desktop.
Save Vbif/bd9432a911c7316661b0bf8a0739d0e2 to your computer and use it in GitHub Desktop.
Write engine and editor versions to file on build
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