有没有一种方式从Github下载Lua的Master存储库(不使用git clone)?

早上好,

我想创建一个小型Homebrew程序,更新翻译补丁的文件。该程序将使用Lua编写,但问题是我无法使用git clone Command从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:希望你能理解我,因为我的英语很差。

点赞