This commit is contained in:
Gvidas Juknevičius 2024-08-25 22:12:53 +03:00
parent bb8aceb832
commit b1e225d2c4
Signed by: MCorange
GPG Key ID: 12B1346D720B7FBB
2 changed files with 6 additions and 6 deletions

View File

@ -11,7 +11,7 @@ local require = function(path)
end
rawset(__BUNDLER_FILES, "main.lua", function ()
local updater = require("updater");
local MODULE_PATH = "keypadOS.lua";
local MODULE_NAME = "keypadOS";
local MODULE_URL = "https://git.mcorangehq.xyz/xomf/keypadOS/raw/branch/keypad/keypadOS.lua";
local function updaterLoop(upd)
while true do
@ -20,8 +20,8 @@ rawset(__BUNDLER_FILES, "main.lua", function ()
end
local function _start()
local upd = updater.new();
upd:addEntry(MODULE_PATH, "keypad", MODULE_URL);
parallel.waitForAny(function() updaterLoop(upd) end, require(MODULE_PATH))
upd:addEntry(MODULE_NAME .. ".lua", "keypad", MODULE_URL);
parallel.waitForAny(function() updaterLoop(upd) end, require(MODULE_NAME))
end
local mod = {};
mod.main = _start;

View File

@ -1,6 +1,6 @@
local updater = require("updater");
local MODULE_PATH = "keypadOS.lua";
local MODULE_NAME = "keypadOS";
local MODULE_URL = "https://git.mcorangehq.xyz/xomf/keypadOS/raw/branch/keypad/keypadOS.lua";
--- @param upd Updater
@ -12,8 +12,8 @@ end
local function _start()
local upd = updater.new();
upd:addEntry(MODULE_PATH, "keypad", MODULE_URL);
parallel.waitForAny(function() updaterLoop(upd) end, require(MODULE_PATH))
upd:addEntry(MODULE_NAME .. ".lua", "keypad", MODULE_URL);
parallel.waitForAny(function() updaterLoop(upd) end, require(MODULE_NAME))
end
local mod = {};