release info setup

This commit is contained in:
Jill 2022-10-17 13:13:32 +03:00
parent 6d75cade25
commit 7020620496
3 changed files with 17 additions and 0 deletions

1
.gitignore vendored Normal file
View File

@ -0,0 +1 @@
release.lua

View File

@ -750,6 +750,10 @@
self:luaeffect('Update')
end
if not pcall(function() oat._release = require('release') end) then
oat._release = require('release_blank')
end
local success, result = pcall(function()
require('main')
end)

12
release_blank.lua Normal file
View File

@ -0,0 +1,12 @@
-- If fields of this are missing, you likely forgot to run update-release.sh
-- If they're missing and you're an end user, you likely downloaded an unstable release through the repository
return {
branch = 'unknown',
commit = 'unknown',
version = 'unknown',
name = 'uranium',
prettyName = 'Uranium Template',
homeURL = 'https://git.oat.zone/oat/uranium-template'
}