feat(update): gate payloads by native host family

This commit is contained in:
Codex Agent
2026-08-12 17:23:25 -05:00
parent c3136bf8f7
commit 0aab11b690
5 changed files with 122 additions and 16 deletions
+3 -2
View File
@@ -153,8 +153,9 @@ local function gatePasses(rel)
local info = Boot.probePayload(rel)
if not info then return true end
local shell = (Version and Version.shell) or 1
if info.minShell and info.minShell > shell then return false end
return true
local payloadHost = (Version and Version.payloadHost) or "love"
if Boot.canHost then return Boot.canHost(info, shell, payloadHost) end
return not (info.minShell and info.minShell > shell)
end
-- ---------------------------------------------------------------------------