We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e179d42 commit 72c05bfCopy full SHA for 72c05bf
utils/buildactions/utils.lua
@@ -96,7 +96,7 @@ function os.sha256_file(path)
96
local windows = os.host() == "windows"
97
local s, errc
98
if windows then
99
- s, errc = os.outputof(string.format("CertUtil -hashfile \"%s\" SHA256", path))
+ s, errc = os.outputof(string.format("utils\\7z\\7za.exe h -scrcSHA256 \"%s\"", path))
100
else
101
s, errc = os.outputof(string.format("sha256sum \"%s\" | awk '{ print $1 }'", path))
102
end
@@ -109,7 +109,7 @@ function os.sha256_file(path)
109
110
-- Clean windows output
111
112
- s = (s:match("\n(.*)\n(.*)") or ""):gsub(" ", "")
+ s = (s:match("SHA256 for data: +([^\n]*)") or "")
113
114
115
return s:lower()
0 commit comments