Compare commits

...

3 Commits

Author SHA1 Message Date
17e3a3b5a8 Second attempt to fix sha256 2025-03-25 15:51:28 +01:00
d575f3c98c Fix typo 2025-03-25 15:39:40 +01:00
f8ef3b0210 Try using different implementation of sha256 2025-03-25 15:38:42 +01:00
2 changed files with 5697 additions and 7 deletions

View File

@@ -2,8 +2,7 @@ local repoRoot = "https://git.colon-three.com/kodi/snowier/raw/branch/main/"
local URLs = {
fileIndex = repoRoot .. "index.json",
-- Implementation of sha256 pulled from here
sha2 = "https://raw.githubusercontent.com/Egor-Skriptunoff/pure_lua_SHA/refs/heads/master/sha2.lua"
sha256 = repoRoot .. "sha256.lua"
}
local log = {}
@@ -21,15 +20,15 @@ end
local function main()
log.info("Starting installer")
if not fs.exists("sha2.lua") then
log.info("Downloading sha2.lua")
local sharequest = http.get(URLs.sha2)
local shafile = fs.open("sha2.lua", "w")
if not fs.exists("sha256.lua") then
log.info("Downloading sha256.lua")
local sharequest = http.get(URLs.sha256)
local shafile = fs.open("sha256.lua", "w")
shafile.write(sharequest.readAll())
shafile.close()
sharequest.close()
end
local hash = require("sha2")
local hash = require("sha256")
log.info("Downloading index file")
local indexrequest = http.get(URLs.fileIndex)

5691
sha256.lua Normal file

File diff suppressed because it is too large Load Diff