diff options
| author | ruki <[email protected]> | 2020-01-16 00:35:56 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2020-01-15 21:35:36 +0800 |
| commit | ffce1ede94e7873e7ab248b05d468e84f6c205d0 (patch) | |
| tree | b9e578a90d904e7324df9292816a06a205cf678f | |
| parent | 20cf6c946fc6c3a09205dc8d4e768ab9d2b001ca (diff) | |
add todo for downloading resources
| -rw-r--r-- | xmake/actions/require/impl/action/download_resources.lua | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/xmake/actions/require/impl/action/download_resources.lua b/xmake/actions/require/impl/action/download_resources.lua index 1d9675e32..7371f270f 100644 --- a/xmake/actions/require/impl/action/download_resources.lua +++ b/xmake/actions/require/impl/action/download_resources.lua @@ -79,6 +79,8 @@ function main(package) -- download all resources for name, resourceinfo in pairs(resources) do - _download(package, name, resourceinfo.url, resourceinfo.sha256) + -- we use wrap to support urls table and only get the first url now + -- TODO maybe we will download resource from the multiple urls in the future + _download(package, name, table.wrap(resourceinfo.url)[1], resourceinfo.sha256) end end |
