mirror of
https://github.com/Adorable-Catgirl/Zorya-NEO.git
synced 2025-02-19 04:56:02 +11:00
10 lines
412 B
Lua
10 lines
412 B
Lua
|
local h = io.popen("find build -depth -type f | grep -v sig.bin | grep -v update.zy2", "r")
|
||
|
local sigfile = io.open("build/sig.bin", "wb")
|
||
|
for line in h:lines() do
|
||
|
sigfile:write(line:sub(7).."\0")
|
||
|
local s = io.popen("openssl dgst -sha256 -sign zbsign.pem "..line, "r")
|
||
|
sigfile:write(s:read("*a"))
|
||
|
s:close()
|
||
|
end
|
||
|
sigfile:close()
|
||
|
os.execute("cd build; find * -depth | grep -v update.zy2 | cpio -o > update.zy2")
|