fetch-latest-releases: write VERSION file
This commit is contained in:
1 parent
69f5a7f8dd
commit
c7ec655598
1 file changed
+7
-1
@@ -83,11 +83,17 @@ local destdir = arg[2] or "out"
|
||||
|
||||
lfs.mkdir(destdir)
|
||||
|
||||
local version
|
||||
local f = io.open(string.format("%s/checksums.sha512", destdir), "w")
|
||||
|
||||
for arch,rel in pairs(get_releases(branch, destdir)) do
|
||||
local line = string.format("%s %s/%s\n", rel.sha512, arch, rel.file)
|
||||
f:write(line)
|
||||
version=rel.version
|
||||
end
|
||||
f:close()
|
||||
|
||||
-- write version
|
||||
f = io.open(string.format("%s/VERSION", destdir), "w")
|
||||
f:write(version)
|
||||
f:close()
|
||||
|
||||
Reference in new issue
Block a user