summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--xmake/actions/require/impl/action/download_resources.lua4
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