need mcorange git actions

This commit is contained in:
xomf 2024-08-17 23:36:23 -04:00
parent 739e731bc4
commit d6f168e9eb

View File

@ -7,7 +7,7 @@ local require = function(path)
return __DEFAULT_IMPORT(path) return __DEFAULT_IMPORT(path)
end end
end end
local KEYPADOS_UPDATE_HASH = "xBDnzGEOVIVZyRGGMsKFCptR" local KEYPADOS_UPDATE_HASH = "dGWGjxrYViZwxsSgLMdmnMeu"
rawset(__BUNDLER_FILES, "updater.lua", function () rawset(__BUNDLER_FILES, "updater.lua", function ()
local utils = require("utils.lua") local utils = require("utils.lua")
local LAST_USED = os.time() local LAST_USED = os.time()
@ -25,6 +25,9 @@ rawset(__BUNDLER_FILES, "updater.lua", function ()
if update_code_text then if update_code_text then
if string.find(update_code_text, "^local __BUNDLER_FILES = {}") then if string.find(update_code_text, "^local __BUNDLER_FILES = {}") then
-- Make backup -- Make backup
if fs.exists("backup.lua") then
fs.delete("backup.lua")
end
fs.copy("startup.lua", "backup.lua") fs.copy("startup.lua", "backup.lua")
if not string.find(update_code_text, KEYPADOS_UPDATE_HASH) then if not string.find(update_code_text, KEYPADOS_UPDATE_HASH) then
local file = fs.open("startup.lua", "w") local file = fs.open("startup.lua", "w")