mirror of
https://github.com/love2d/love.git
synced 2026-08-12 00:20:52 +02:00
13 lines
239 B
Lua
13 lines
239 B
Lua
function b64(name)
|
|
local i = io.popen("base64 " .. name)
|
|
local encoded = i:read("*a")
|
|
i:close()
|
|
|
|
local output = ("local %s =\n%q"):format(name:gsub("%.", "_"), encoded)
|
|
return output
|
|
end
|
|
|
|
for i, v in ipairs(arg) do
|
|
print(b64(v))
|
|
end
|