:3
This commit is contained in:
parent
51b6b7fc95
commit
ffa88f010c
2
rtmc.lua
2
rtmc.lua
|
@ -427,7 +427,7 @@ rawset(__BUNDLER_FILES, "updater", function ()
|
||||||
fd.write(body);
|
fd.write(body);
|
||||||
fd.close();
|
fd.close();
|
||||||
local notif = "Computer #" .. tostring( os.getComputerID() ) .. " updating";
|
local notif = "Computer #" .. tostring( os.getComputerID() ) .. " updating";
|
||||||
notifier.notify("urgent", notif);
|
notifier.notify("5", notif);
|
||||||
log.debug("New update written to disk (" .. path .. ")");
|
log.debug("New update written to disk (" .. path .. ")");
|
||||||
end
|
end
|
||||||
return updater;
|
return updater;
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
local notifier = {};
|
local notifier = {};
|
||||||
notifier.__index = notifier;
|
notifier.__index = notifier;
|
||||||
|
|
||||||
--- @param priority "max"|"urgent"|"high"|"default"|"low"|"min"
|
--- @param priority "1"|"2"|"3"|"4"|"5"
|
||||||
--- @param body string
|
--- @param body string
|
||||||
function notifier.notify(priority, body)
|
function notifier.notify(priority, body)
|
||||||
local headers = {
|
local headers = {
|
||||||
|
|
|
@ -116,7 +116,7 @@ function updater:update(path, url)
|
||||||
fd.close();
|
fd.close();
|
||||||
|
|
||||||
local notif = "Computer #" .. tostring( os.getComputerID() ) .. " updating";
|
local notif = "Computer #" .. tostring( os.getComputerID() ) .. " updating";
|
||||||
notifier.notify("urgent", notif);
|
notifier.notify("5", notif);
|
||||||
log.debug("New update written to disk (" .. path .. ")");
|
log.debug("New update written to disk (" .. path .. ")");
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user