fixed minify header and build script

This commit is contained in:
2026-02-25 11:41:41 -05:00
parent 02e7b3897c
commit a6550aa069
16 changed files with 18 additions and 34 deletions

View File

@@ -1,3 +1,4 @@
--:Minify:--
local kernel = ... local kernel = ...
local proxy = {} local proxy = {}

View File

@@ -1,22 +0,0 @@
---- :Minify:--
--local kernel = ...
--
--local timeout = false
--kernel.processes.keventd = function()
-- while true do
-- local event = {kernel.computer:getMachineEvent()}
-- if event[1] then
-- if event[1] == "keyTyped" then
-- if event[3] == "\x1b^s" then
-- kernel.shutdown()
-- elseif event[3] == "\x1b^r" then
-- kernel.reboot()
-- end
-- end
-- timeout = false
-- else
-- timeout = true
-- end
-- if timeout then sleep(.05) end
-- end
--end

View File

@@ -1,2 +1,5 @@
--:Minify:-- --:Minify:--
local kernel = ... local kernel = ...
kernel.vfs.open("/dev/tty/1","r")
kernel.vfs.open("/dev/tty/1","w")
kernel.vfs.open("/dev/null","w")

View File

@@ -1,3 +1,4 @@
--:Minify:--
local kernel=... local kernel=...
local sysc=kernel.syscalls local sysc=kernel.syscalls
kernel.gpio={} kernel.gpio={}

View File

@@ -1,2 +1,3 @@
--:Minify:--
local kernel = ... local kernel = ...
kernel.allowGlobalOverwrites = false kernel.allowGlobalOverwrites = false

View File

@@ -72,7 +72,7 @@ def process_root(src_root: Path, out_root: Path, minify: bool):
if minify and has_minify_header(src): if minify and has_minify_header(src):
print(" > Minifying") print(" > Minifying")
result = subprocess.run( result = subprocess.run(
["luamin", "-f", str(src)], ["luamin.cmd", "-f", str(src)],
capture_output=True, text=True capture_output=True, text=True
) )
if result.returncode != 0: if result.returncode != 0: