有没有办法从Github下载Lua的Master Repository(没有git clone)?

时间:2017-05-13 13:11:38

标签: git github lua

早上好,

我想创建一个更新翻译文件的Homebrew。 该程序将用Lua编写,但问题是我无法在没有git clone命令的情况下从Github下载Master-Repo ......

local http = require("socket.http")
local body, code = http.request("https://github.com/OngoGablogian/Puyo_Puyo_Tetris_Translation/archive/master.zip")
if not body then error(code) end
local f = assert(io.open('master.zip', 'wb')) -- open in "binary" mode
f:write(body)
f:close()

(我得到一个空的master.zip文件。)

感谢您的帮助,

卢卡斯

PS:希望你能理解我,因为我的英语非常糟糕

0 个答案:

没有答案